#[repr(C, u8)]pub enum OptionDocumentSelectionSpan {
None,
Some(DocumentSelectionSpan),
}Variants§
None
Some(DocumentSelectionSpan)
Implementations§
Source§impl OptionDocumentSelectionSpan
impl OptionDocumentSelectionSpan
pub fn into_option(&self) -> Option<DocumentSelectionSpan>
Source§impl OptionDocumentSelectionSpan
impl OptionDocumentSelectionSpan
pub const fn as_option(&self) -> Option<&DocumentSelectionSpan>
pub const fn replace( &mut self, value: DocumentSelectionSpan, ) -> OptionDocumentSelectionSpan
pub const fn is_some(&self) -> bool
pub const fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&DocumentSelectionSpan>
pub const fn as_mut(&mut self) -> Option<&mut DocumentSelectionSpan>
pub fn map<U, F: FnOnce(DocumentSelectionSpan) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionDocumentSelectionSpan
impl Clone for OptionDocumentSelectionSpan
Source§fn clone(&self) -> OptionDocumentSelectionSpan
fn clone(&self) -> OptionDocumentSelectionSpan
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 OptionDocumentSelectionSpan
Source§impl Debug for OptionDocumentSelectionSpan
impl Debug for OptionDocumentSelectionSpan
Source§impl Default for OptionDocumentSelectionSpan
impl Default for OptionDocumentSelectionSpan
Source§fn default() -> OptionDocumentSelectionSpan
fn default() -> OptionDocumentSelectionSpan
Returns the “default value” for a type. Read more
impl Eq for OptionDocumentSelectionSpan
Source§impl From<Option<DocumentSelectionSpan>> for OptionDocumentSelectionSpan
impl From<Option<DocumentSelectionSpan>> for OptionDocumentSelectionSpan
Source§fn from(o: Option<DocumentSelectionSpan>) -> OptionDocumentSelectionSpan
fn from(o: Option<DocumentSelectionSpan>) -> OptionDocumentSelectionSpan
Converts to this type from the input type.
Source§impl From<OptionDocumentSelectionSpan> for Option<DocumentSelectionSpan>
impl From<OptionDocumentSelectionSpan> for Option<DocumentSelectionSpan>
Source§fn from(o: OptionDocumentSelectionSpan) -> Option<DocumentSelectionSpan>
fn from(o: OptionDocumentSelectionSpan) -> Option<DocumentSelectionSpan>
Converts to this type from the input type.
Source§impl Hash for OptionDocumentSelectionSpan
impl Hash for OptionDocumentSelectionSpan
Source§impl Ord for OptionDocumentSelectionSpan
impl Ord for OptionDocumentSelectionSpan
Source§fn cmp(&self, other: &OptionDocumentSelectionSpan) -> Ordering
fn cmp(&self, other: &OptionDocumentSelectionSpan) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for OptionDocumentSelectionSpan
impl PartialOrd for OptionDocumentSelectionSpan
impl StructuralPartialEq for OptionDocumentSelectionSpan
Auto Trait Implementations§
impl Freeze for OptionDocumentSelectionSpan
impl RefUnwindSafe for OptionDocumentSelectionSpan
impl Send for OptionDocumentSelectionSpan
impl Sync for OptionDocumentSelectionSpan
impl Unpin for OptionDocumentSelectionSpan
impl UnsafeUnpin for OptionDocumentSelectionSpan
impl UnwindSafe for OptionDocumentSelectionSpan
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