Enum medea_jason::media::constraints::ConstrainU32
source · pub enum ConstrainU32 {
Exact(u32),
Ideal(u32),
Range(u32, u32),
}
Expand description
Representation of a ConstrainULong.
Underlying value must fit in a [0, 4294967295]
range.
Variants§
Exact(u32)
Must be the parameter’s value.
Ideal(u32)
Should be used if possible.
Range(u32, u32)
Parameter’s value must be in this range.
Trait Implementations§
source§impl Clone for ConstrainU32
impl Clone for ConstrainU32
source§fn clone(&self) -> ConstrainU32
fn clone(&self) -> ConstrainU32
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 Debug for ConstrainU32
impl Debug for ConstrainU32
source§impl PartialEq<ConstrainU32> for ConstrainU32
impl PartialEq<ConstrainU32> for ConstrainU32
source§fn eq(&self, other: &ConstrainU32) -> bool
fn eq(&self, other: &ConstrainU32) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ConstrainU32
impl Eq for ConstrainU32
impl StructuralEq for ConstrainU32
impl StructuralPartialEq for ConstrainU32
Auto Trait Implementations§
impl RefUnwindSafe for ConstrainU32
impl Send for ConstrainU32
impl Sync for ConstrainU32
impl Unpin for ConstrainU32
impl UnwindSafe for ConstrainU32
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