Struct ole::Entry
[−]
[src]
pub struct Entry { /* fields omitted */ }
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());
Methods
impl Entry
[src]
pub fn id(&self) -> u32
[src]
Returns the ID of the entry.
pub fn creation_time(&self) -> u64
[src]
Returns the creation time of the entry (could be 0)
pub fn last_modification_time(&self) -> u64
[src]
Returns the last modification time of the entry (could be 0)
pub fn name(&self) -> &str
[src]
Returns the name of the entry.
pub fn _type(&self) -> EntryType
[src]
Returns the type of the entry.
pub fn len(&self) -> usize
[src]
Returns the size of the entry
pub fn left_child_node(&self) -> u32
[src]
Returns the DirID of the left child node
pub fn right_child_node(&self) -> u32
[src]
Returns the DirID of the right child node
pub fn parent_node(&self) -> Option<u32>
[src]
Returns the DirID of the parent, if exists
pub fn children_nodes(&self) -> &Vec<u32>
[src]
Returns the DirIDs of the children, if exists
Trait Implementations
impl Debug for Entry
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more