Enum rustc_errors::diagnostic::StringPart
source · pub enum StringPart {
Normal(String),
Highlighted(String),
}
Variants§
Implementations§
Trait Implementations§
source§impl Debug for StringPart
impl Debug for StringPart
source§impl PartialEq<StringPart> for StringPart
impl PartialEq<StringPart> for StringPart
source§fn eq(&self, other: &StringPart) -> bool
fn eq(&self, other: &StringPart) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StringPart
impl StructuralEq for StringPart
impl StructuralPartialEq for StringPart
Auto Trait Implementations§
impl RefUnwindSafe for StringPart
impl Send for StringPart
impl Sync for StringPart
impl Unpin for StringPart
impl UnwindSafe for StringPart
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
Normal
: 24 bytesHighlighted
: 24 bytes