Struct bo::Document

source · []
pub struct Document {
    rows: Vec<Row>,
    pub filename: Option<PathBuf>,
}

Fields

rows: Vec<Row>filename: Option<PathBuf>

Implementations

Panics

This function will panic if the path contains a non UTF-8 character

Errors
Panics

Returns an error if a file bearing the provided filename cannot be open.

Errors
Panics

Can return an error if the file can’t be created or written to.

Errors
Panics

Can return an error if the file can’t be created or written to.

Errors
Panics

Can return an error if the file can’t be created or written to.

Get the document row corresponding to a given line number

Return the line number of the last line in the file

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.