pub struct SimpleUnc {
pub map_to_drive: bool,
}Fields§
§map_to_drive: boolMap to the network share drive when possible.
let path = "file.txt";
let unc = SimpleUnc { map_to_drive: true, ..Default::default() };
let canonicalized = unc.canonicalize(path);If the file.txt is in a network drive,
the result should be Z:\dir\file.txt
instead of \\server\share\dir\file.txt.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimpleUnc
impl RefUnwindSafe for SimpleUnc
impl Send for SimpleUnc
impl Sync for SimpleUnc
impl Unpin for SimpleUnc
impl UnsafeUnpin for SimpleUnc
impl UnwindSafe for SimpleUnc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more