vibe.d beta banner
get vibe.d
0.10.1

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-2021 Sönke Ludwig

License

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