[][src]Struct kas::text::Effect

pub struct Effect<X> {
    pub start: u32,
    pub flags: EffectFlags,
    pub aux: X,
}

Effect formatting marker

Fields

start: u32

Index in text at which formatting becomes active

(Note that we use u32 not usize since it can be assumed text length will never exeed u32::MAX.)

flags: EffectFlags

Effect flags

aux: X

User payload

Trait Implementations

impl<X> Clone for Effect<X> where
    X: Clone
[src]

impl<X> Debug for Effect<X> where
    X: Debug
[src]

impl<X> Default for Effect<X> where
    X: Default
[src]

impl<X> PartialEq<Effect<X>> for Effect<X> where
    X: PartialEq<X>, 
[src]

impl<X> StructuralPartialEq for Effect<X>[src]

Auto Trait Implementations

impl<X> RefUnwindSafe for Effect<X> where
    X: RefUnwindSafe

impl<X> Send for Effect<X> where
    X: Send

impl<X> Sync for Effect<X> where
    X: Sync

impl<X> Unpin for Effect<X> where
    X: Unpin

impl<X> UnwindSafe for Effect<X> where
    X: UnwindSafe

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.