pub enum StringView<S = Rc<str>>where
S: StringLeaf,{
Empty,
Leaf(S),
Node {
color: Color,
len_chars: usize,
len_bytes: usize,
left: StringTree<S>,
right: StringTree<S>,
},
}Variants§
Trait Implementations§
Source§impl<S> Clone for StringView<S>where
S: StringLeaf + Clone,
impl<S> Clone for StringView<S>where
S: StringLeaf + Clone,
Source§fn clone(&self) -> StringView<S>
fn clone(&self) -> StringView<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S> Debug for StringView<S>where
S: StringLeaf + Debug,
impl<S> Debug for StringView<S>where
S: StringLeaf + Debug,
Source§impl<S> PartialEq for StringView<S>where
S: StringLeaf + PartialEq,
impl<S> PartialEq for StringView<S>where
S: StringLeaf + PartialEq,
Source§fn eq(&self, other: &StringView<S>) -> bool
fn eq(&self, other: &StringView<S>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<S> Eq for StringView<S>where
S: StringLeaf + Eq,
impl<S> StructuralPartialEq for StringView<S>where
S: StringLeaf,
Auto Trait Implementations§
impl<S> Freeze for StringView<S>where
S: Freeze,
impl<S> RefUnwindSafe for StringView<S>where
S: RefUnwindSafe,
impl<S = Rc<str>> !Send for StringView<S>
impl<S = Rc<str>> !Sync for StringView<S>
impl<S> Unpin for StringView<S>where
S: Unpin,
impl<S> UnsafeUnpin for StringView<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for StringView<S>where
S: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more