vibe.d beta banner
get vibe.d

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));


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.


Sönke Ludwig


© 2012-2021 Sönke Ludwig


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