vibe.d beta banner
get vibe.d
0.10.0

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

Function GenericPath.opCast

Converts the path to a different path format.

P opCast(P)() const
if (isInstanceOf!(.GenericPath, P));

Throws

A PathValidationException will be thrown if the path is not representable in the requested path format. This can happen especially when converting Posix or Internet paths to windows paths, since Windows paths cannot contain a number of characters that the other representations can, in theory.

Authors

Sönke Ludwig

Copyright

© 2012-2018 Sönke Ludwig

License

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