#[repr(C)]pub struct GenericHyphenateLimitChars<Integer> {
pub total_word_length: NumberOrAuto<Integer>,
pub pre_hyphen_length: NumberOrAuto<Integer>,
pub post_hyphen_length: NumberOrAuto<Integer>,
}
Expand description
A generic value for the hyphenate-limit-chars
property.
Fields§
§total_word_length: NumberOrAuto<Integer>
Required minimum number of characters in a hyphenated word.
pre_hyphen_length: NumberOrAuto<Integer>
Required minumum number of characters before the hyphen.
post_hyphen_length: NumberOrAuto<Integer>
Required minumum number of characters after the hyphen.
Implementations§
Trait Implementations§
Source§impl<Integer> Animate for GenericHyphenateLimitChars<Integer>where
Integer: Animate,
impl<Integer> Animate for GenericHyphenateLimitChars<Integer>where
Integer: Animate,
Source§impl<Integer: Clone> Clone for GenericHyphenateLimitChars<Integer>
impl<Integer: Clone> Clone for GenericHyphenateLimitChars<Integer>
Source§fn clone(&self) -> GenericHyphenateLimitChars<Integer>
fn clone(&self) -> GenericHyphenateLimitChars<Integer>
Returns a copy 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<Integer> ComputeSquaredDistance for GenericHyphenateLimitChars<Integer>where
Integer: ComputeSquaredDistance,
impl<Integer> ComputeSquaredDistance for GenericHyphenateLimitChars<Integer>where
Integer: ComputeSquaredDistance,
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<Integer: Debug> Debug for GenericHyphenateLimitChars<Integer>
impl<Integer: Debug> Debug for GenericHyphenateLimitChars<Integer>
Source§impl<Integer> MallocSizeOf for GenericHyphenateLimitChars<Integer>where
Integer: MallocSizeOf,
impl<Integer> MallocSizeOf for GenericHyphenateLimitChars<Integer>where
Integer: MallocSizeOf,
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<Integer: PartialEq> PartialEq for GenericHyphenateLimitChars<Integer>
impl<Integer: PartialEq> PartialEq for GenericHyphenateLimitChars<Integer>
Source§fn eq(&self, other: &GenericHyphenateLimitChars<Integer>) -> bool
fn eq(&self, other: &GenericHyphenateLimitChars<Integer>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<Integer> SpecifiedValueInfo for GenericHyphenateLimitChars<Integer>where
Integer: SpecifiedValueInfo,
impl<Integer> SpecifiedValueInfo for GenericHyphenateLimitChars<Integer>where
Integer: SpecifiedValueInfo,
Source§const SUPPORTED_TYPES: u8
const SUPPORTED_TYPES: u8
Supported CssTypes by the given value type. Read more
Source§impl<Integer> ToAnimatedValue for GenericHyphenateLimitChars<Integer>where
Integer: ToAnimatedValue,
impl<Integer> ToAnimatedValue for GenericHyphenateLimitChars<Integer>where
Integer: ToAnimatedValue,
Source§type AnimatedValue = GenericHyphenateLimitChars<<Integer as ToAnimatedValue>::AnimatedValue>
type AnimatedValue = GenericHyphenateLimitChars<<Integer as ToAnimatedValue>::AnimatedValue>
The type of the animated value.
Source§fn from_animated_value(from: Self::AnimatedValue) -> Self
fn from_animated_value(from: Self::AnimatedValue) -> Self
Converts back an animated value into a computed value.
Source§fn to_animated_value(self, context: &Context<'_>) -> Self::AnimatedValue
fn to_animated_value(self, context: &Context<'_>) -> Self::AnimatedValue
Converts this value to an animated value.
Source§impl<Integer> ToAnimatedZero for GenericHyphenateLimitChars<Integer>where
Integer: ToAnimatedZero,
impl<Integer> ToAnimatedZero for GenericHyphenateLimitChars<Integer>where
Integer: ToAnimatedZero,
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
Source§impl<Integer> ToComputedValue for GenericHyphenateLimitChars<Integer>where
Integer: ToComputedValue,
impl<Integer> ToComputedValue for GenericHyphenateLimitChars<Integer>where
Integer: ToComputedValue,
Source§type ComputedValue = GenericHyphenateLimitChars<<Integer as ToComputedValue>::ComputedValue>
type ComputedValue = GenericHyphenateLimitChars<<Integer as ToComputedValue>::ComputedValue>
The computed value type we’re going to be converted to.
Source§fn from_computed_value(from: &Self::ComputedValue) -> Self
fn from_computed_value(from: &Self::ComputedValue) -> Self
Convert a computed value to specified value form. Read more
Source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Convert a specified value to a computed value, using itself and the data
inside the
Context
.Source§impl<Integer> ToResolvedValue for GenericHyphenateLimitChars<Integer>where
Integer: ToResolvedValue,
impl<Integer> ToResolvedValue for GenericHyphenateLimitChars<Integer>where
Integer: ToResolvedValue,
Source§type ResolvedValue = GenericHyphenateLimitChars<<Integer as ToResolvedValue>::ResolvedValue>
type ResolvedValue = GenericHyphenateLimitChars<<Integer as ToResolvedValue>::ResolvedValue>
The resolved value type we’re going to be converted to.
Source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
Convert a resolved value to resolved value form.
Source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Convert a resolved value to a resolved value.
Source§impl<Integer> ToShmem for GenericHyphenateLimitChars<Integer>where
Integer: ToShmem,
impl<Integer> ToShmem for GenericHyphenateLimitChars<Integer>where
Integer: ToShmem,
impl<Integer> StructuralPartialEq for GenericHyphenateLimitChars<Integer>
Auto Trait Implementations§
impl<Integer> Freeze for GenericHyphenateLimitChars<Integer>where
Integer: Freeze,
impl<Integer> RefUnwindSafe for GenericHyphenateLimitChars<Integer>where
Integer: RefUnwindSafe,
impl<Integer> Send for GenericHyphenateLimitChars<Integer>where
Integer: Send,
impl<Integer> Sync for GenericHyphenateLimitChars<Integer>where
Integer: Sync,
impl<Integer> Unpin for GenericHyphenateLimitChars<Integer>where
Integer: Unpin,
impl<Integer> UnwindSafe for GenericHyphenateLimitChars<Integer>where
Integer: UnwindSafe,
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