pub struct Entry { /* private fields */ }
Expand description
An entry in an OLE file.
An entry means a stream or a storage. A stream is a file, and a storage is a folder.
§Basic Example
use ole::Reader;
let mut parser =
Reader::from_path("assets/Thumbs.db").unwrap();
let entry = parser.iterate().next().unwrap();
println!("Name of the entry: {}", entry.name());
println!("Type of the entry: {}", entry._type());
println!("Size of the entry: {}", entry.len());
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn creation_time(&self) -> u64
pub fn creation_time(&self) -> u64
Returns the creation time of the entry (could be 0)
Sourcepub fn last_modification_time(&self) -> u64
pub fn last_modification_time(&self) -> u64
Returns the last modification time of the entry (could be 0)
Sourcepub fn left_child_node(&self) -> u32
pub fn left_child_node(&self) -> u32
Returns the DirID of the left child node
Sourcepub fn right_child_node(&self) -> u32
pub fn right_child_node(&self) -> u32
Returns the DirID of the right child node
Sourcepub fn parent_node(&self) -> Option<u32>
pub fn parent_node(&self) -> Option<u32>
Returns the DirID of the parent, if exists
Sourcepub fn children_nodes(&self) -> &Vec<u32>
pub fn children_nodes(&self) -> &Vec<u32>
Returns the DirIDs of the children, if exists
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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