#[repr(C, u8)]pub enum OptionScrollState {
None,
Some(ScrollState),
}Variants§
None
Some(ScrollState)
Implementations§
Source§impl OptionScrollState
impl OptionScrollState
pub fn into_option(&self) -> Option<ScrollState>
Source§impl OptionScrollState
impl OptionScrollState
pub fn as_option(&self) -> Option<&ScrollState>
pub fn replace(&mut self, value: ScrollState) -> OptionScrollState
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&ScrollState>
pub fn as_mut(&mut self) -> Option<&mut ScrollState>
pub fn map<U, F: FnOnce(ScrollState) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionScrollState
impl Clone for OptionScrollState
Source§fn clone(&self) -> OptionScrollState
fn clone(&self) -> OptionScrollState
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 OptionScrollState
impl Debug for OptionScrollState
Source§impl Default for OptionScrollState
impl Default for OptionScrollState
Source§fn default() -> OptionScrollState
fn default() -> OptionScrollState
Returns the “default value” for a type. Read more
Source§impl From<Option<ScrollState>> for OptionScrollState
impl From<Option<ScrollState>> for OptionScrollState
Source§fn from(o: Option<ScrollState>) -> OptionScrollState
fn from(o: Option<ScrollState>) -> OptionScrollState
Converts to this type from the input type.
Source§impl From<OptionScrollState> for Option<ScrollState>
impl From<OptionScrollState> for Option<ScrollState>
Source§fn from(o: OptionScrollState) -> Option<ScrollState>
fn from(o: OptionScrollState) -> Option<ScrollState>
Converts to this type from the input type.
Source§impl PartialEq for OptionScrollState
impl PartialEq for OptionScrollState
Source§impl PartialOrd for OptionScrollState
impl PartialOrd for OptionScrollState
impl Copy for OptionScrollState
impl StructuralPartialEq for OptionScrollState
Auto Trait Implementations§
impl Freeze for OptionScrollState
impl RefUnwindSafe for OptionScrollState
impl Send for OptionScrollState
impl Sync for OptionScrollState
impl Unpin for OptionScrollState
impl UnwindSafe for OptionScrollState
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more