Enum slint::PointerEventButton
[−]#[repr(C)]
pub enum PointerEventButton {
None,
Left,
Right,
Middle,
}
Variants
None
Left
Right
Middle
Trait Implementations
impl Clone for PointerEventButton
impl Clone for PointerEventButton
fn clone(&self) -> PointerEventButton
fn clone(&self) -> PointerEventButton
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for PointerEventButton
impl Debug for PointerEventButton
impl Default for PointerEventButton
impl Default for PointerEventButton
fn default() -> PointerEventButton
fn default() -> PointerEventButton
Returns the “default value” for a type. Read more
impl Display for PointerEventButton
impl Display for PointerEventButton
impl FromStr for PointerEventButton
impl FromStr for PointerEventButton
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(
s: &str
) -> Result<PointerEventButton, <PointerEventButton as FromStr>::Err>
fn from_str(
s: &str
) -> Result<PointerEventButton, <PointerEventButton as FromStr>::Err>
Parses a string s
to return a value of this type. Read more
impl Hash for PointerEventButton
impl Hash for PointerEventButton
impl PartialEq<PointerEventButton> for PointerEventButton
impl PartialEq<PointerEventButton> for PointerEventButton
fn eq(&self, other: &PointerEventButton) -> bool
fn eq(&self, other: &PointerEventButton) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl TryFrom<&str> for PointerEventButton
impl TryFrom<&str> for PointerEventButton
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
fn try_from(
s: &str
) -> Result<PointerEventButton, <PointerEventButton as TryFrom<&str>>::Error>
fn try_from(
s: &str
) -> Result<PointerEventButton, <PointerEventButton as TryFrom<&str>>::Error>
Performs the conversion.
impl Copy for PointerEventButton
impl Eq for PointerEventButton
impl StructuralEq for PointerEventButton
impl StructuralPartialEq for PointerEventButton
Auto Trait Implementations
impl RefUnwindSafe for PointerEventButton
impl Send for PointerEventButton
impl Sync for PointerEventButton
impl Unpin for PointerEventButton
impl UnwindSafe for PointerEventButton
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.
impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian()
.
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian()
.
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian()
.
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more