Struct rc_zip::parse::EndOfCentralDirectory
source · pub struct EndOfCentralDirectory<'a> {
pub dir: Located<EndOfCentralDirectoryRecord<'a>>,
pub dir64: Option<Located<EndOfCentralDirectory64Record>>,
pub global_offset: i64,
}
Expand description
Coalesces zip and zip64 “end of central directory” record info
Fields§
§dir: Located<EndOfCentralDirectoryRecord<'a>>
The end of central directory record
dir64: Option<Located<EndOfCentralDirectory64Record>>
The zip64 end of central directory record
global_offset: i64
Zip files may be prepended by arbitrary data, this is how much data is at the beginning of the file that isn’t part of the zip
Implementations§
source§impl EndOfCentralDirectory<'_>
impl EndOfCentralDirectory<'_>
sourcepub fn to_owned(&self) -> EndOfCentralDirectory<'static>
pub fn to_owned(&self) -> EndOfCentralDirectory<'static>
Copy the structure and clone the original values.
This is always a deep copy.
source§impl EndOfCentralDirectory<'_>
impl EndOfCentralDirectory<'_>
sourcepub fn into_owned(self) -> EndOfCentralDirectory<'static>
pub fn into_owned(self) -> EndOfCentralDirectory<'static>
Copy the structure and clone the original values if it’s not owned.
This is always a deep copy of the structure.
Trait Implementations§
source§impl IntoOwned for EndOfCentralDirectory<'_>
impl IntoOwned for EndOfCentralDirectory<'_>
source§type Owned = EndOfCentralDirectory<'static>
type Owned = EndOfCentralDirectory<'static>
The type after obtaining ownership, should be the same as before but with static lifetime.
source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Copy the structure and clone the original values if it’s not owned. Read more
Auto Trait Implementations§
impl<'a> Freeze for EndOfCentralDirectory<'a>
impl<'a> RefUnwindSafe for EndOfCentralDirectory<'a>
impl<'a> Send for EndOfCentralDirectory<'a>
impl<'a> Sync for EndOfCentralDirectory<'a>
impl<'a> Unpin for EndOfCentralDirectory<'a>
impl<'a> UnwindSafe for EndOfCentralDirectory<'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