Struct ole::OLEEntry
[−]
[src]
pub struct OLEEntry { /* 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::OLEReader; let mut parser = OLEReader::<std::fs::File>::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 OLEEntry
[src]
pub fn id(&self) -> u32
[src]
Returns the ID of the entry.
pub fn creation_time(&self) -> Option<&Timestamp>
[src]
Returns the creation time of the entry, if defined (i.e. not zero).
pub fn last_modification_time(&self) -> Option<&Timestamp>
[src]
Returns the last modification time of the entry, if defined (i.e. not zero).
pub fn name(&self) -> &str
[src]
Returns the name of the entry.
pub fn _type(&self) -> EntryType
[src]
Return the type of the entry.
pub fn len(&self) -> usize
[src]
Return the size of the entry
Trait Implementations
impl Debug for OLEEntry
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more