pub struct SpannedString {
pub span: Span,
pub content: String,
}
Expand description
A string with a character span.
Fields§
§span: Span
§content: String
Trait Implementations§
Source§impl AsRef<str> for SpannedString
impl AsRef<str> for SpannedString
Source§impl Clone for SpannedString
impl Clone for SpannedString
Source§fn clone(&self) -> SpannedString
fn clone(&self) -> SpannedString
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 SpannedString
impl Debug for SpannedString
Source§impl Display for SpannedString
impl Display for SpannedString
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 SpannedString
impl Ord for SpannedString
Source§fn cmp(&self, other: &SpannedString) -> Ordering
fn cmp(&self, other: &SpannedString) -> 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 SpannedString
impl PartialEq for SpannedString
Source§impl PartialOrd for SpannedString
impl PartialOrd for SpannedString
impl Eq for SpannedString
impl StructuralPartialEq for SpannedString
Auto Trait Implementations§
impl Freeze for SpannedString
impl RefUnwindSafe for SpannedString
impl Send for SpannedString
impl Sync for SpannedString
impl Unpin for SpannedString
impl UnwindSafe for SpannedString
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