pub struct Effect<X> {
pub start: u32,
pub flags: EffectFlags,
pub aux: X,
}
Expand description
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 exceed u32::MAX
.)
flags: EffectFlags
Effect flags
aux: X
User payload
Implementations§
Trait Implementations§
source§impl<X: PartialEq> PartialEq<Effect<X>> for Effect<X>
impl<X: PartialEq> PartialEq<Effect<X>> for Effect<X>
impl<X: Eq> Eq for Effect<X>
impl<X> StructuralEq for Effect<X>
impl<X> StructuralPartialEq for Effect<X>
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§
source§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more