pub struct RealpathRawBuilder<'a> { /* private fields */ }
Expand description

A “builder” that allows customizing options to realpath_raw().

realpath_raw(path, buf, flags) is equivalent to RealpathRawBuilder::new().flags(flags).realpath_raw(path, buf).

Implementations

Create a new “builder”.

The returned builder has its flags empty, and temp_buffer set to None.

Set the flags used to modify path resolution.

See RealpathFlags for more information.

Set the temporary buffer used to store intermediate results.

It’s recommended to make this buffer somewhat larger than the buf passed to Self::realpath_raw(), since the current algorithm requires a bit of overhead in the temporary buffer.

If tmp is None (default), a temporary buffer of length PATH_MAX + 100 will be allocated on the stack.

Canonicalize the path given by path into the buffer given by buf.

path, buf, and the return value have the same meanings as for realpath_raw().

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.