#[repr(u8)]pub enum WindowButton {
Close = 0,
Minimize = 1,
Maximize = 2,
}Variants§
Implementations§
Source§impl WindowButton
impl WindowButton
Sourcepub const ALL: [Self; 3]
pub const ALL: [Self; 3]
Can’t be indexed with Self::X as usize because all the used bit flags are not necessary contiguous
Sourcepub const BITS: [WindowButtonFlags; 3]
pub const BITS: [WindowButtonFlags; 3]
Can’t be indexed with Self::X as usize because all the used bit flags are not necessary contiguous
pub const All: WindowButtonFlags
pub const fn flags(self) -> WindowButtonFlags ⓘ
pub const fn bits(self) -> u8
pub fn from_index(index: u8) -> Option<Self>
pub unsafe fn from_index_unchecked(index: u8) -> Option<Self>
pub fn from_flags(flags: WindowButtonFlags) -> Option<Self>
pub unsafe fn from_flags_unchecked(flags: WindowButtonFlags) -> Self
pub fn from_bits(bits: u8) -> Option<Self>
pub unsafe fn from_bits_unchecked(bits: u8) -> Self
Trait Implementations§
Source§impl<T> BitAnd<T> for WindowButtonwhere
T: Into<WindowButtonFlags>,
impl<T> BitAnd<T> for WindowButtonwhere
T: Into<WindowButtonFlags>,
Source§impl<T> BitOr<T> for WindowButtonwhere
T: Into<WindowButtonFlags>,
impl<T> BitOr<T> for WindowButtonwhere
T: Into<WindowButtonFlags>,
Source§impl<T> BitXor<T> for WindowButtonwhere
T: Into<WindowButtonFlags>,
impl<T> BitXor<T> for WindowButtonwhere
T: Into<WindowButtonFlags>,
Source§impl Clone for WindowButton
impl Clone for WindowButton
Source§fn clone(&self) -> WindowButton
fn clone(&self) -> WindowButton
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 moreSource§impl Debug for WindowButton
impl Debug for WindowButton
Source§impl<'de> Deserialize<'de> for WindowButton
impl<'de> Deserialize<'de> for WindowButton
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<WindowButton> for WindowButtonFlags
impl From<WindowButton> for WindowButtonFlags
Source§fn from(value: WindowButton) -> Self
fn from(value: WindowButton) -> Self
Converts to this type from the input type.
Source§impl From<WindowButton> for WindowButtons
impl From<WindowButton> for WindowButtons
Source§fn from(value: WindowButton) -> Self
fn from(value: WindowButton) -> Self
Converts to this type from the input type.
Source§impl Hash for WindowButton
impl Hash for WindowButton
Source§impl Not for WindowButton
impl Not for WindowButton
Source§impl Ord for WindowButton
impl Ord for WindowButton
Source§fn cmp(&self, other: &WindowButton) -> Ordering
fn cmp(&self, other: &WindowButton) -> 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<WindowButton> for WindowButtonFlags
impl PartialEq<WindowButton> for WindowButtonFlags
Source§impl PartialEq<WindowButtonFlags> for WindowButton
impl PartialEq<WindowButtonFlags> for WindowButton
Source§impl PartialEq for WindowButton
impl PartialEq for WindowButton
Source§impl PartialOrd for WindowButton
impl PartialOrd for WindowButton
Source§impl Serialize for WindowButton
impl Serialize for WindowButton
Source§impl TryFrom<WindowButtonFlags> for WindowButton
impl TryFrom<WindowButtonFlags> for WindowButton
impl Copy for WindowButton
impl Eq for WindowButton
impl StructuralPartialEq for WindowButton
Auto Trait Implementations§
impl Freeze for WindowButton
impl RefUnwindSafe for WindowButton
impl Send for WindowButton
impl Sync for WindowButton
impl Unpin for WindowButton
impl UnsafeUnpin for WindowButton
impl UnwindSafe for WindowButton
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
Source§impl<S, T> CastRangeInto<T> for Swhere
T: CastRangeFrom<S>,
impl<S, T> CastRangeInto<T> for Swhere
T: CastRangeFrom<S>,
fn cast_range_into(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FromJson for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromJson for Twhere
T: for<'de> Deserialize<'de>,
fn from_json_bytes(bytes: &[u8]) -> Result<Self, EncodeError>
fn from_json_with_reader<R>(reader: R) -> Result<Self, EncodeError>where
R: Read,
fn from_json(json: &str) -> Result<Self, EncodeError>
Source§impl<T> FromRon for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromRon for Twhere
T: for<'de> Deserialize<'de>,
fn from_ron_bytes(bytes: &[u8]) -> Result<Self, EncodeError>
fn from_ron_with_reader<R>(reader: R) -> Result<Self, EncodeError>where
R: Read,
fn from_ron(ron: &str) -> Result<Self, EncodeError>
Source§impl<T> FromTmpBin for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromTmpBin for Twhere
T: for<'de> Deserialize<'de>,
fn from_tmp_bin_bytes(bytes: &[u8]) -> Result<Self, EncodeError>
fn from_tmp_bin_with_reader<R>(reader: R) -> Result<Self, EncodeError>where
R: Read,
Source§impl<T> FromXml for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromXml for Twhere
T: for<'de> Deserialize<'de>,
fn from_xml_bytes(bytes: &[u8]) -> Result<Self, EncodeError>
fn from_xml_with_reader<R>(reader: R) -> Result<Self, EncodeError>where
R: Read,
fn from_xml(xml: &str) -> Result<Self, EncodeError>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PartialOrdExtension for Twhere
T: PartialOrd,
impl<T> PartialOrdExtension for Twhere
T: PartialOrd,
Source§fn max_partial(self, other: Self) -> Selfwhere
Self: Sized,
fn max_partial(self, other: Self) -> Selfwhere
Self: Sized,
Using
PartialOrd operator, not component wiseSource§fn min_partial(self, other: Self) -> Selfwhere
Self: Sized,
fn min_partial(self, other: Self) -> Selfwhere
Self: Sized,
Using
PartialOrd operator, not component wiseSource§fn clamp_partial(self, min: Self, max: Self) -> Selfwhere
Self: Sized,
fn clamp_partial(self, min: Self, max: Self) -> Selfwhere
Self: Sized,
Using
PartialOrd operator, not component wiseSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToJson for Twhere
T: Serialize,
impl<T> ToJson for Twhere
T: Serialize,
fn to_json(&self) -> Result<String, EncodeError>
fn to_json_with_writer<W>(&self, writer: W) -> Result<(), EncodeError>where
W: Write,
Source§impl<T> ToRon for Twhere
T: Serialize,
impl<T> ToRon for Twhere
T: Serialize,
fn to_ron(&self) -> Result<String, EncodeError>
fn to_ron_with_writer<W>(&self, writer: W) -> Result<(), EncodeError>where
W: Write,
Source§impl<T> ToTmpBin for Twhere
T: Serialize,
impl<T> ToTmpBin for Twhere
T: Serialize,
Source§fn to_tmp_bin(&self) -> Result<Vec<u8>, EncodeError>
fn to_tmp_bin(&self) -> Result<Vec<u8>, EncodeError>
Intended for short-term storage of data in a binary format, such as during data transfer. Read more
Source§fn to_tmp_bin_with_writer<W>(&self, writer: W) -> Result<(), EncodeError>where
W: Write,
fn to_tmp_bin_with_writer<W>(&self, writer: W) -> Result<(), EncodeError>where
W: Write,
Intended for short-term storage of data in a binary format, such as during data transfer. Read more