pub enum Property<T: Debug + Clone + Copy + Eq + PartialEq> {
Variable,
Constant(T),
}Expand description
Represents a property that can be either constant or variable, like the resolution or the framerate.
Variants§
Trait Implementations§
impl<T: Copy + Debug + Clone + Copy + Eq + PartialEq> Copy for Property<T>
impl<T: Eq + Debug + Clone + Copy + Eq + PartialEq> Eq for Property<T>
impl<T: Debug + Clone + Copy + Eq + PartialEq> StructuralPartialEq for Property<T>
Auto Trait Implementations§
impl<T> Freeze for Property<T>where
T: Freeze,
impl<T> RefUnwindSafe for Property<T>where
T: RefUnwindSafe,
impl<T> Send for Property<T>where
T: Send,
impl<T> Sync for Property<T>where
T: Sync,
impl<T> Unpin for Property<T>where
T: Unpin,
impl<T> UnwindSafe for Property<T>where
T: 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