[−][src]Struct chmlib::UnitInfo
Methods
impl UnitInfo
[src]
pub fn is_normal(&self) -> bool
[src]
pub fn is_special(&self) -> bool
[src]
pub fn is_meta(&self) -> bool
[src]
pub fn is_file(&self) -> bool
[src]
pub fn is_dir(&self) -> bool
[src]
pub fn space(&self) -> c_int
[src]
pub fn start(&self) -> u64
[src]
The starting position within the underlying file.
pub fn length(&self) -> u64
[src]
The number of bytes in this item.
pub fn path(&self) -> Option<&Path>
[src]
The item's filename.
Security
This path is provided by the original CHM file's author. It is the
caller's responsibility to handle malicious input (e.g.
/../../../etc/passwd
).
Trait Implementations
Auto Trait Implementations
impl Send for UnitInfo
impl Sync for UnitInfo
impl Unpin for UnitInfo
impl UnwindSafe for UnitInfo
impl RefUnwindSafe for UnitInfo
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,