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