Struct rle::Single [−][src]
pub struct Single<T>(pub T);Expand description
A SplitableSpan wrapper for any single item.
Tuple Fields
0: TTrait Implementations
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
Auto Trait Implementations
impl<T> RefUnwindSafe for Single<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Single<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more