[][src]Struct chmlib::UnitInfo

#[repr(transparent)]
pub struct 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

impl Debug for UnitInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]