pub struct Source<T> { /* private fields */ }
Expand description
Borrows or owns a source
Trait Implementations§
Source§impl TryFrom<&Path> for Source<File>
Open a zip file from a path.
This is less efficient than the &CStr variant, so that should be preferred when you can
construct a &CStr type directly or cache one. If you would just be converting a path to a
cstring and then discarding it, this method might be preferable because that’s all this does.
This will also panic if the Path contains any null bytes.
impl TryFrom<&Path> for Source<File>
Open a zip file from a path. This is less efficient than the &CStr variant, so that should be preferred when you can construct a &CStr type directly or cache one. If you would just be converting a path to a cstring and then discarding it, this method might be preferable because that’s all this does. This will also panic if the Path contains any null bytes.
Auto Trait Implementations§
impl<T> Freeze for Source<T>
impl<T> RefUnwindSafe for Source<T>where
T: RefUnwindSafe,
impl<T> !Send for Source<T>
impl<T> !Sync for Source<T>
impl<T> Unpin for Source<T>where
T: Unpin,
impl<T> UnwindSafe for Source<T>where
T: UnwindSafe,
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