Enum ConstrainMode
#[non_exhaustive]pub enum ConstrainMode {
None,
HeightOnly,
WidthAndHeight,
Screen,
Unknown(u32),
}Expand description
Map constraint modes used by viewport options.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
§impl ConstrainMode
impl ConstrainMode
pub fn from_raw(raw: u32) -> ConstrainMode
pub fn as_raw(self) -> u32
Trait Implementations§
§impl Clone for ConstrainMode
impl Clone for ConstrainMode
§fn clone(&self) -> ConstrainMode
fn clone(&self) -> ConstrainMode
Returns a duplicate 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 more§impl Debug for ConstrainMode
impl Debug for ConstrainMode
§impl Hash for ConstrainMode
impl Hash for ConstrainMode
§impl PartialEq for ConstrainMode
impl PartialEq for ConstrainMode
impl Copy for ConstrainMode
impl Eq for ConstrainMode
impl StructuralPartialEq for ConstrainMode
Auto Trait Implementations§
impl Freeze for ConstrainMode
impl RefUnwindSafe for ConstrainMode
impl Send for ConstrainMode
impl Sync for ConstrainMode
impl Unpin for ConstrainMode
impl UnsafeUnpin for ConstrainMode
impl UnwindSafe for ConstrainMode
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