Enum iced_x86::SymResTextInfo
source · [−]pub enum SymResTextInfo<'a> {
Text(SymResTextPart<'a>),
TextVec(&'a [SymResTextPart<'a>]),
}
Expand description
Contains one or more SymResTextPart
s (text and color)
Variants
Text(SymResTextPart<'a>)
Tuple Fields
0: SymResTextPart<'a>
Text and color
Text and color
TextVec(&'a [SymResTextPart<'a>])
Tuple Fields
0: &'a [SymResTextPart<'a>]
Text and color
Text and color (vector)
Implementations
sourceimpl<'a> SymResTextInfo<'a>
impl<'a> SymResTextInfo<'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
sourcepub const fn with_text(text: SymResTextPart<'a>) -> Self
pub const fn with_text(text: SymResTextPart<'a>) -> Self
sourcepub const fn with_vec(text: &'a [SymResTextPart<'a>]) -> Self
pub const fn with_vec(text: &'a [SymResTextPart<'a>]) -> Self
Trait Implementations
sourceimpl<'a> Clone for SymResTextInfo<'a>
impl<'a> Clone for SymResTextInfo<'a>
sourcefn clone(&self) -> SymResTextInfo<'a>
fn clone(&self) -> SymResTextInfo<'a>
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 moresourceimpl<'a> Debug for SymResTextInfo<'a>
impl<'a> Debug for SymResTextInfo<'a>
sourceimpl<'a> Hash for SymResTextInfo<'a>
impl<'a> Hash for SymResTextInfo<'a>
sourceimpl<'a> PartialEq<SymResTextInfo<'a>> for SymResTextInfo<'a>
impl<'a> PartialEq<SymResTextInfo<'a>> for SymResTextInfo<'a>
sourcefn eq(&self, other: &SymResTextInfo<'a>) -> bool
fn eq(&self, other: &SymResTextInfo<'a>) -> bool
impl<'a> Eq for SymResTextInfo<'a>
impl<'a> StructuralEq for SymResTextInfo<'a>
impl<'a> StructuralPartialEq for SymResTextInfo<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SymResTextInfo<'a>
impl<'a> Send for SymResTextInfo<'a>
impl<'a> Sync for SymResTextInfo<'a>
impl<'a> Unpin for SymResTextInfo<'a>
impl<'a> UnwindSafe for SymResTextInfo<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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