#[repr(i32)]pub enum WindowMode {
Fullscreen = 0,
Borderless = 1,
Windowed = 2,
WindowedMaximized = 3,
}
Variants§
Implementations§
Source§impl WindowMode
impl WindowMode
Source§impl WindowMode
impl WindowMode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for WindowMode
impl Clone for WindowMode
Source§fn clone(&self) -> WindowMode
fn clone(&self) -> WindowMode
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 WindowMode
impl Debug for WindowMode
Source§impl Default for WindowMode
impl Default for WindowMode
Source§fn default() -> WindowMode
fn default() -> WindowMode
Returns the “default value” for a type. Read more
Source§impl From<WindowMode> for i32
impl From<WindowMode> for i32
Source§fn from(value: WindowMode) -> i32
fn from(value: WindowMode) -> i32
Converts to this type from the input type.
Source§impl Hash for WindowMode
impl Hash for WindowMode
Source§impl Ord for WindowMode
impl Ord for WindowMode
Source§fn cmp(&self, other: &WindowMode) -> Ordering
fn cmp(&self, other: &WindowMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WindowMode
impl PartialEq for WindowMode
Source§impl PartialOrd for WindowMode
impl PartialOrd for WindowMode
Source§impl TryFrom<i32> for WindowMode
impl TryFrom<i32> for WindowMode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<WindowMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<WindowMode, UnknownEnumValue>
Performs the conversion.
impl Copy for WindowMode
impl Eq for WindowMode
impl StructuralPartialEq for WindowMode
Auto Trait Implementations§
impl Freeze for WindowMode
impl RefUnwindSafe for WindowMode
impl Send for WindowMode
impl Sync for WindowMode
impl Unpin for WindowMode
impl UnwindSafe for WindowMode
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