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§
source§impl<'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§
source§impl<'a> Clone for SymResTextInfo<'a>
impl<'a> Clone for SymResTextInfo<'a>
source§fn clone(&self) -> SymResTextInfo<'a>
fn clone(&self) -> SymResTextInfo<'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 SymResTextInfo<'a>
impl<'a> Debug for SymResTextInfo<'a>
source§impl<'a> Hash for SymResTextInfo<'a>
impl<'a> Hash for SymResTextInfo<'a>
source§impl<'a> PartialEq for SymResTextInfo<'a>
impl<'a> PartialEq for SymResTextInfo<'a>
source§fn eq(&self, other: &SymResTextInfo<'a>) -> bool
fn eq(&self, other: &SymResTextInfo<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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