Struct nvim_types::Object
source · [−]#[repr(C)]pub struct Object { /* private fields */ }Expand description
Represents any type of Neovim object.
Implementations
sourceimpl Object
impl Object
pub const fn is_nil(&self) -> bool
pub const fn is_some(&self) -> bool
sourcepub fn kind(&self) -> ObjectKind
pub fn kind(&self) -> ObjectKind
TODO: docs
sourcepub unsafe fn as_boolean_unchecked(&self) -> bool
pub unsafe fn as_boolean_unchecked(&self) -> bool
TODO: docs
sourcepub unsafe fn as_integer_unchecked(&self) -> Integer
pub unsafe fn as_integer_unchecked(&self) -> Integer
TODO: docs
sourcepub unsafe fn as_float_unchecked(&self) -> Float
pub unsafe fn as_float_unchecked(&self) -> Float
TODO: docs
sourcepub unsafe fn into_string_unchecked(self) -> NvimString
pub unsafe fn into_string_unchecked(self) -> NvimString
sourcepub unsafe fn into_array_unchecked(self) -> Array
pub unsafe fn into_array_unchecked(self) -> Array
sourcepub unsafe fn into_dict_unchecked(self) -> Dictionary
pub unsafe fn into_dict_unchecked(self) -> Dictionary
Extracts the inner Dictionary from the object, without checking that
the object actually represents a Dictionary.
Trait Implementations
sourceimpl From<Collection<KeyValuePair>> for Object
impl From<Collection<KeyValuePair>> for Object
sourcefn from(dictionary: Dictionary) -> Self
fn from(dictionary: Dictionary) -> Self
Converts to this type from the input type.
sourceimpl From<Collection<Object>> for Object
impl From<Collection<Object>> for Object
sourceimpl From<String> for Object
impl From<String> for Object
sourcefn from(string: NvimString) -> Self
fn from(string: NvimString) -> Self
Converts to this type from the input type.
sourceimpl<K, V> FromIterator<(K, V)> for Object where
NvimString: From<K>,
Object: From<V>,
impl<K, V> FromIterator<(K, V)> for Object where
NvimString: From<K>,
Object: From<V>,
sourcefn from_iter<I: IntoIterator<Item = (K, V)>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = (K, V)>>(iter: I) -> Self
Creates a value from an iterator. Read more
sourceimpl<T> FromIterator<T> for Object where
T: Into<Object>,
impl<T> FromIterator<T> for Object where
T: Into<Object>,
sourcefn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
sourceimpl TryFrom<Object> for Dictionary
impl TryFrom<Object> for Dictionary
sourceimpl TryFrom<Object> for NvimString
impl TryFrom<Object> for NvimString
Auto Trait Implementations
impl RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
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