pub enum BreakableStringComponent {
String(SpannedString),
Comment(SpannedComment),
}
Expand description
A component of a breakable string.
Variants§
String(SpannedString)
Comment(SpannedComment)
Trait Implementations§
Source§impl Clone for BreakableStringComponent
impl Clone for BreakableStringComponent
Source§fn clone(&self) -> BreakableStringComponent
fn clone(&self) -> BreakableStringComponent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BreakableStringComponent
impl Debug for BreakableStringComponent
Source§impl From<SpannedComment> for BreakableStringComponent
impl From<SpannedComment> for BreakableStringComponent
Source§fn from(c: SpannedComment) -> Self
fn from(c: SpannedComment) -> Self
Converts to this type from the input type.
Source§impl From<SpannedString> for BreakableStringComponent
impl From<SpannedString> for BreakableStringComponent
Source§fn from(s: SpannedString) -> Self
fn from(s: SpannedString) -> Self
Converts to this type from the input type.
Source§impl Ord for BreakableStringComponent
impl Ord for BreakableStringComponent
Source§fn cmp(&self, other: &BreakableStringComponent) -> Ordering
fn cmp(&self, other: &BreakableStringComponent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BreakableStringComponent
impl PartialEq for BreakableStringComponent
Source§impl PartialOrd for BreakableStringComponent
impl PartialOrd for BreakableStringComponent
impl Eq for BreakableStringComponent
impl StructuralPartialEq for BreakableStringComponent
Auto Trait Implementations§
impl Freeze for BreakableStringComponent
impl RefUnwindSafe for BreakableStringComponent
impl Send for BreakableStringComponent
impl Sync for BreakableStringComponent
impl Unpin for BreakableStringComponent
impl UnwindSafe for BreakableStringComponent
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