vibe.d beta banner
get vibe.d
0.8.3

Asynchronous I/O that doesn’t get in your way, written in D

Function GenericPath.Segment.opCast

Converts the segment to another path type.

{null} opCast(T, F)();

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.

Throws

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

Authors

Sönke Ludwig

Copyright

© 2012-2017 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.