Enum nvim_oxi_api::types::StringOrInt
source · pub enum StringOrInt {
String(String),
Int(Integer),
}Variants§
Trait Implementations§
source§impl Clone for StringOrInt
impl Clone for StringOrInt
source§fn clone(&self) -> StringOrInt
fn clone(&self) -> StringOrInt
Returns a copy of the value. Read more
1.0.0 · 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 StringOrInt
impl Debug for StringOrInt
source§impl<'de> Deserialize<'de> for StringOrInt
impl<'de> Deserialize<'de> for StringOrInt
source§fn 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
source§impl From<&str> for StringOrInt
impl From<&str> for StringOrInt
source§impl From<String> for StringOrInt
impl From<String> for StringOrInt
source§impl From<i64> for StringOrInt
impl From<i64> for StringOrInt
source§impl Hash for StringOrInt
impl Hash for StringOrInt
source§impl PartialEq for StringOrInt
impl PartialEq for StringOrInt
source§fn eq(&self, other: &StringOrInt) -> bool
fn eq(&self, other: &StringOrInt) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for StringOrInt
impl StructuralPartialEq for StringOrInt
Auto Trait Implementations§
impl Freeze for StringOrInt
impl RefUnwindSafe for StringOrInt
impl Send for StringOrInt
impl Sync for StringOrInt
impl Unpin for StringOrInt
impl UnwindSafe for StringOrInt
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
source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§type Error = Infallible
type Error = Infallible
The error type in the returned
Result.source§fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
Converts the value into a
Result.