pub struct TextDecorationInset {
pub start: LengthPercentage,
pub end: LengthPercentage,
pub is_auto: bool,
}Expand description
A text-decoration-inset value for animation: we resolve auto to a pair of lengths,
but record whether the original value was actually auto.
Fields§
§start: LengthPercentageThe inset at the start of the decoration.
end: LengthPercentageThe inset at the end of the decoration.
is_auto: boolWhether this represents a resolved auto value.
Trait Implementations§
Source§impl Animate for TextDecorationInset
impl Animate for TextDecorationInset
Source§impl Clone for TextDecorationInset
impl Clone for TextDecorationInset
Source§fn clone(&self) -> TextDecorationInset
fn clone(&self) -> TextDecorationInset
Returns a duplicate 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 ComputeSquaredDistance for TextDecorationInset
impl ComputeSquaredDistance for TextDecorationInset
Source§fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
Computes the squared distance between two animatable values.
Source§impl Debug for TextDecorationInset
impl Debug for TextDecorationInset
Source§impl MallocSizeOf for TextDecorationInset
impl MallocSizeOf for TextDecorationInset
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Source§impl PartialEq for TextDecorationInset
impl PartialEq for TextDecorationInset
Source§impl ToAnimatedZero for TextDecorationInset
impl ToAnimatedZero for TextDecorationInset
Source§fn to_animated_zero(&self) -> Result<Self, ()>
fn to_animated_zero(&self) -> Result<Self, ()>
Returns a value that, when added with an underlying value, will produce the underlying
value. This is used for SMIL animation’s “by-animation” where SMIL first interpolates from
the zero value to the ‘by’ value, and then adds the result to the underlying value. Read more
impl StructuralPartialEq for TextDecorationInset
Auto Trait Implementations§
impl Freeze for TextDecorationInset
impl RefUnwindSafe for TextDecorationInset
impl Send for TextDecorationInset
impl Sync for TextDecorationInset
impl Unpin for TextDecorationInset
impl UnsafeUnpin for TextDecorationInset
impl UnwindSafe for TextDecorationInset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert