Enum languageserver_types::NumberOrString
[−]
[src]
pub enum NumberOrString { Number(u64), String(String), }
Variants
Number(u64)
String(String)
Trait Implementations
impl Debug for NumberOrString
[src]
impl PartialEq for NumberOrString
[src]
fn eq(&self, __arg_0: &NumberOrString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NumberOrString) -> bool
This method tests for !=
.
impl Clone for NumberOrString
[src]
fn clone(&self) -> NumberOrString
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Serialize for NumberOrString
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.
impl Deserialize for NumberOrString
[src]
fn deserialize<D>(deserializer: &mut D) -> Result<Self, D::Error> where D: Deserializer
Deserialize this value given this Deserializer
.