Enum lsp_types::NumberOrString
source · [−]Variants
Number(i32)
String(String)
Trait Implementations
sourceimpl Clone for NumberOrString
impl Clone for NumberOrString
sourcefn clone(&self) -> NumberOrString
fn clone(&self) -> NumberOrString
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
sourceimpl Debug for NumberOrString
impl Debug for NumberOrString
sourceimpl<'de> Deserialize<'de> for NumberOrString
impl<'de> Deserialize<'de> for NumberOrString
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for NumberOrString
impl Hash for NumberOrString
sourceimpl PartialEq<NumberOrString> for NumberOrString
impl PartialEq<NumberOrString> for NumberOrString
sourcefn eq(&self, other: &NumberOrString) -> bool
fn eq(&self, other: &NumberOrString) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Serialize for NumberOrString
impl Serialize for NumberOrString
impl Eq for NumberOrString
impl StructuralEq for NumberOrString
impl StructuralPartialEq for NumberOrString
Auto Trait Implementations
impl RefUnwindSafe for NumberOrString
impl Send for NumberOrString
impl Sync for NumberOrString
impl Unpin for NumberOrString
impl UnwindSafe for NumberOrString
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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