Struct content_tree::testrange::TestRange[][src]

pub struct TestRange {
    pub id: u32,
    pub len: u32,
    pub is_activated: bool,
}
Expand description

This is a simple span object for testing.

Fields

id: u32len: u32is_activated: bool

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

User specific content length. Used by content-tree for character counts.

Formats the value using the given formatter. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Checks if the entry contains the specified item. If it does, returns the offset into the item. Read more

The number of child items in the entry. This is indexed with the size used in truncate.

Split the entry, returning the part of the entry which was jettisoned. After truncating at pos, self.len() == pos and the returned value contains the rest of the items. Read more

The inverse of truncate. This method mutably truncates an item, keeping all content from at..item.len() and returning the item range from 0..at. Read more

See if the other item can be appended to self. can_append will always be called immediately before append. Read more

Merge the passed item into self. Essentially, self = self + other. Read more

Append an item at the start of this item. self = other + self. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.