#[repr(C)]pub struct GenericRandomFunction<L> {
pub key: GenericCalcNode<L>,
pub min: GenericCalcNode<L>,
pub max: GenericCalcNode<L>,
pub step: Optional<GenericCalcNode<L>>,
}Expand description
A random() function.
https://drafts.csswg.org/css-values-5/#funcdef-random
Fields§
§key: GenericCalcNode<L>The <random-key>, resolving to the random base value.
min: GenericCalcNode<L>The minimum value the function can resolve to, inclusive.
max: GenericCalcNode<L>The maximum value the function can resolve to, inclusive.
step: Optional<GenericCalcNode<L>>The optional step value.
Trait Implementations§
Source§impl<L: Clone> Clone for GenericRandomFunction<L>
impl<L: Clone> Clone for GenericRandomFunction<L>
Source§fn clone(&self) -> GenericRandomFunction<L>
fn clone(&self) -> GenericRandomFunction<L>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<L: Debug> Debug for GenericRandomFunction<L>
impl<L: Debug> Debug for GenericRandomFunction<L>
Source§impl<'de, L> Deserialize<'de> for GenericRandomFunction<L>where
L: Deserialize<'de>,
impl<'de, L> Deserialize<'de> for GenericRandomFunction<L>where
L: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<L> MallocSizeOf for GenericRandomFunction<L>where
L: MallocSizeOf,
impl<L> MallocSizeOf for GenericRandomFunction<L>where
L: 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<L: PartialEq> PartialEq for GenericRandomFunction<L>
impl<L: PartialEq> PartialEq for GenericRandomFunction<L>
Source§fn eq(&self, other: &GenericRandomFunction<L>) -> bool
fn eq(&self, other: &GenericRandomFunction<L>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<L> Serialize for GenericRandomFunction<L>where
L: Serialize,
impl<L> Serialize for GenericRandomFunction<L>where
L: Serialize,
Source§impl<L> ToAnimatedZero for GenericRandomFunction<L>where
L: ToAnimatedZero,
impl<L> ToAnimatedZero for GenericRandomFunction<L>where
L: 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<L> ToResolvedValue for GenericRandomFunction<L>where
L: ToResolvedValue,
impl<L> ToResolvedValue for GenericRandomFunction<L>where
L: ToResolvedValue,
Source§type ResolvedValue = GenericRandomFunction<<L as ToResolvedValue>::ResolvedValue>
type ResolvedValue = GenericRandomFunction<<L 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<L> ToShmem for GenericRandomFunction<L>where
L: ToShmem,
impl<L> ToShmem for GenericRandomFunction<L>where
L: ToShmem,
impl<L> StructuralPartialEq for GenericRandomFunction<L>
Auto Trait Implementations§
impl<L> Freeze for GenericRandomFunction<L>where
L: Freeze,
impl<L> RefUnwindSafe for GenericRandomFunction<L>where
L: RefUnwindSafe,
impl<L> Send for GenericRandomFunction<L>where
L: Send,
impl<L> Sync for GenericRandomFunction<L>where
L: Sync,
impl<L> Unpin for GenericRandomFunction<L>where
L: Unpin,
impl<L> UnsafeUnpin for GenericRandomFunction<L>where
L: UnsafeUnpin,
impl<L> UnwindSafe for GenericRandomFunction<L>where
L: UnwindSafe + RefUnwindSafe,
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