Segment.opCast

Converts the segment to another path type.

The segment name will be re-validated during the conversion. The separator, if any, will be adopted or replaced by the default separator of the target path type.

struct Segment
@safe const
GenericPath!F.Segment
opCast
(
T : GenericPath!F.Segment
F
)
()

Throws

A PathValidationException is thrown if the segment name cannot be represented in the target path format.

Meta