[][src]Enum iced_x86::SymResTextInfo

pub enum SymResTextInfo<'a> {
    Text(SymResTextPart<'a>),
    TextVec(&'a [SymResTextPart<'a>]),
}

Contains one or more SymResTextParts (text and color)

Variants

Text(SymResTextPart<'a>)

Text and color

Text and color (vector)

Implementations

impl<'a> SymResTextInfo<'a>[src]

#[must_use]pub fn new(text: &'a str, color: FormatterTextKind) -> Self[src]

Constructor

Arguments

  • text: Text
  • color: Color

#[must_use]pub fn with_string(text: String, color: FormatterTextKind) -> Self[src]

Constructor

Arguments

  • text: Text
  • color: Color

#[must_use]pub fn with_text(text: SymResTextPart<'a>) -> Self[src]

Constructor

Arguments

  • text: Text

#[must_use]pub fn with_vec(text: &'a [SymResTextPart<'a>]) -> Self[src]

Constructor

Arguments

  • text: Text

Trait Implementations

impl<'a> Clone for SymResTextInfo<'a>[src]

impl<'a> Debug for SymResTextInfo<'a>[src]

impl<'a> Eq for SymResTextInfo<'a>[src]

impl<'a> Hash for SymResTextInfo<'a>[src]

impl<'a> PartialEq<SymResTextInfo<'a>> for SymResTextInfo<'a>[src]

impl<'a> StructuralEq for SymResTextInfo<'a>[src]

impl<'a> StructuralPartialEq for SymResTextInfo<'a>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.