pub struct Effect<X> {
pub start: u32,
pub flags: EffectFlags,
pub aux: X,
}Expand description
Effect formatting marker
Fields
start: u32Index 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: EffectFlagsEffect flags
aux: XUser payload
Implementations
Trait Implementations
sourceimpl<'de, X> Deserialize<'de> for Effect<X>where
X: Deserialize<'de>,
impl<'de, X> Deserialize<'de> for Effect<X>where
X: Deserialize<'de>,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Effect<X>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Effect<X>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<X> PartialEq<Effect<X>> for Effect<X>where
X: PartialEq<X>,
impl<X> PartialEq<Effect<X>> for Effect<X>where
X: PartialEq<X>,
sourceimpl<X> Serialize for Effect<X>where
X: Serialize,
impl<X> Serialize for Effect<X>where
X: Serialize,
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<X> Eq for Effect<X>where
X: Eq,
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
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
sourceimpl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
sourcefn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
Try approximate conversion from Self to T Read more
sourcefn cast_approx(self) -> T
fn cast_approx(self) -> T
Cast approximately from Self to T Read more
sourceimpl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
sourcefn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
sourcefn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
sourcefn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
sourcefn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
sourcefn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
sourcefn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
sourcefn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.