Struct rle::Single[][src]

pub struct Single<T>(pub T);
Expand description

A SplitableSpan wrapper for any single item.

Tuple Fields

0: T

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

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

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

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

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.