pub struct Source<'a> { /* private fields */ }
Expand description
Borrows or owns a source
Implementations§
Trait Implementations§
Source§impl TryFrom<&Path> for Source<'static>
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<'static>
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<'a> Freeze for Source<'a>
impl<'a> RefUnwindSafe for Source<'a>
impl<'a> !Send for Source<'a>
impl<'a> !Sync for Source<'a>
impl<'a> Unpin for Source<'a>
impl<'a> UnwindSafe for Source<'a>
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