Struct webrtc_media::track::constraint::Numeric
source · [−]pub struct Numeric<T> { /* private fields */ }
Implementations
sourceimpl<T> Numeric<T>where
T: Clone + PartialOrd,
impl<T> Numeric<T>where
T: Clone + PartialOrd,
pub fn new(is_required: bool, kind: NumericKind<T>) -> Self
pub fn exists(is_expected: bool) -> Self
pub fn exactly(value: T) -> Self
pub fn at_least(min: T, ideal: Option<T>) -> Self
pub fn at_most(max: T, ideal: Option<T>) -> Self
pub fn within(min: T, max: T, ideal: Option<T>) -> Self
pub fn is_required(self, is_required: bool) -> Self
Trait Implementations
sourceimpl<T: PartialEq> PartialEq<Numeric<T>> for Numeric<T>
impl<T: PartialEq> PartialEq<Numeric<T>> for Numeric<T>
impl<T: Eq> Eq for Numeric<T>
impl<T> StructuralEq for Numeric<T>
impl<T> StructuralPartialEq for Numeric<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Numeric<T>where
T: RefUnwindSafe,
impl<T> Send for Numeric<T>where
T: Send,
impl<T> Sync for Numeric<T>where
T: Sync,
impl<T> Unpin for Numeric<T>where
T: Unpin,
impl<T> UnwindSafe for Numeric<T>where
T: 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