#[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 const fn as_option(&self) -> Option<&ScrollState>
pub const fn replace(&mut self, value: ScrollState) -> OptionScrollState
pub const fn is_some(&self) -> bool
pub const fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&ScrollState>
pub const 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OptionScrollState
Source§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
impl Eq for OptionScrollState
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 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 UnsafeUnpin 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