pub struct StringNode<S = Rc<str>>where
S: StringLeaf,{
pub color: Color,
pub len_chars: usize,
pub len_bytes: usize,
pub left: StringTree<S>,
pub right: StringTree<S>,
}Fields§
§color: Color§len_chars: usize§len_bytes: usize§left: StringTree<S>§right: StringTree<S>Trait Implementations§
Source§impl<S> Clone for StringNode<S>where
S: StringLeaf + Clone,
impl<S> Clone for StringNode<S>where
S: StringLeaf + Clone,
Source§fn clone(&self) -> StringNode<S>
fn clone(&self) -> StringNode<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 StringNode<S>where
S: StringLeaf + Debug,
impl<S> Debug for StringNode<S>where
S: StringLeaf + Debug,
Source§impl<S> PartialEq for StringNode<S>where
S: StringLeaf + PartialEq,
impl<S> PartialEq for StringNode<S>where
S: StringLeaf + PartialEq,
Source§fn eq(&self, other: &StringNode<S>) -> bool
fn eq(&self, other: &StringNode<S>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<S> Eq for StringNode<S>where
S: StringLeaf + Eq,
impl<S> StructuralPartialEq for StringNode<S>where
S: StringLeaf,
Auto Trait Implementations§
impl<S> Freeze for StringNode<S>where
S: Freeze,
impl<S> RefUnwindSafe for StringNode<S>where
S: RefUnwindSafe,
impl<S = Rc<str>> !Send for StringNode<S>
impl<S = Rc<str>> !Sync for StringNode<S>
impl<S> Unpin for StringNode<S>where
S: Unpin,
impl<S> UnsafeUnpin for StringNode<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for StringNode<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