Struct iced_x86::SymResTextPart
source · pub struct SymResTextPart<'a> {
pub text: SymResString<'a>,
pub color: FormatterTextKind,
}
Expand description
Contains text and colors
Fields§
§text: SymResString<'a>
Text
color: FormatterTextKind
Color
Implementations§
source§impl<'a> SymResTextPart<'a>
impl<'a> SymResTextPart<'a>
sourcepub const fn new(text: &'a str, color: FormatterTextKind) -> Self
pub const fn new(text: &'a str, color: FormatterTextKind) -> Self
sourcepub const fn with_string(text: String, color: FormatterTextKind) -> Self
pub const fn with_string(text: String, color: FormatterTextKind) -> Self
Trait Implementations§
source§impl<'a> Clone for SymResTextPart<'a>
impl<'a> Clone for SymResTextPart<'a>
source§fn clone(&self) -> SymResTextPart<'a>
fn clone(&self) -> SymResTextPart<'a>
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<'a> Debug for SymResTextPart<'a>
impl<'a> Debug for SymResTextPart<'a>
source§impl<'a> Default for SymResTextPart<'a>
impl<'a> Default for SymResTextPart<'a>
source§fn default() -> SymResTextPart<'a>
fn default() -> SymResTextPart<'a>
Returns the “default value” for a type. Read more
source§impl<'a> Hash for SymResTextPart<'a>
impl<'a> Hash for SymResTextPart<'a>
source§impl<'a> PartialEq for SymResTextPart<'a>
impl<'a> PartialEq for SymResTextPart<'a>
source§fn eq(&self, other: &SymResTextPart<'a>) -> bool
fn eq(&self, other: &SymResTextPart<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for SymResTextPart<'a>
impl<'a> StructuralEq for SymResTextPart<'a>
impl<'a> StructuralPartialEq for SymResTextPart<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SymResTextPart<'a>
impl<'a> Send for SymResTextPart<'a>
impl<'a> Sync for SymResTextPart<'a>
impl<'a> Unpin for SymResTextPart<'a>
impl<'a> UnwindSafe for SymResTextPart<'a>
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