pub enum BreakableStringComponent {
String(SpannedString),
Comment(SpannedComment),
}Expand description
A component of a breakable string.
Variants
String(SpannedString)
Comment(SpannedComment)
Trait Implementations
sourceimpl Clone for BreakableStringComponent
impl Clone for BreakableStringComponent
sourcefn clone(&self) -> BreakableStringComponent
fn clone(&self) -> BreakableStringComponent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BreakableStringComponent
impl Debug for BreakableStringComponent
sourceimpl From<SpannedComment> for BreakableStringComponent
impl From<SpannedComment> for BreakableStringComponent
sourcefn from(c: SpannedComment) -> Self
fn from(c: SpannedComment) -> Self
Converts to this type from the input type.
sourceimpl From<SpannedString> for BreakableStringComponent
impl From<SpannedString> for BreakableStringComponent
sourcefn from(s: SpannedString) -> Self
fn from(s: SpannedString) -> Self
Converts to this type from the input type.
sourceimpl Ord for BreakableStringComponent
impl Ord for BreakableStringComponent
sourceimpl PartialEq<BreakableStringComponent> for BreakableStringComponent
impl PartialEq<BreakableStringComponent> for BreakableStringComponent
sourcefn eq(&self, other: &BreakableStringComponent) -> bool
fn eq(&self, other: &BreakableStringComponent) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &BreakableStringComponent) -> bool
fn ne(&self, other: &BreakableStringComponent) -> bool
This method tests for !=.
sourceimpl PartialOrd<BreakableStringComponent> for BreakableStringComponent
impl PartialOrd<BreakableStringComponent> for BreakableStringComponent
sourcefn partial_cmp(&self, other: &BreakableStringComponent) -> Option<Ordering>
fn partial_cmp(&self, other: &BreakableStringComponent) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Eq for BreakableStringComponent
impl StructuralEq for BreakableStringComponent
impl StructuralPartialEq for BreakableStringComponent
Auto Trait Implementations
impl RefUnwindSafe for BreakableStringComponent
impl Send for BreakableStringComponent
impl Sync for BreakableStringComponent
impl Unpin for BreakableStringComponent
impl UnwindSafe for BreakableStringComponent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more