#[repr(C)]pub struct Object { /* private fields */ }Expand description
Binding to a Neovim object.
Represents any valid Neovim type.
Implementations§
source§impl Object
impl Object
pub fn is_nil(&self) -> bool
pub fn is_some(&self) -> bool
pub fn from_luaref(luaref: LuaRef) -> Self
pub fn kind(&self) -> ObjectKind
sourcepub unsafe fn as_boolean_unchecked(&self) -> bool
pub unsafe fn as_boolean_unchecked(&self) -> bool
Safety
TODO
sourcepub unsafe fn as_integer_unchecked(&self) -> Integer
pub unsafe fn as_integer_unchecked(&self) -> Integer
Safety
TODO
sourcepub unsafe fn as_float_unchecked(&self) -> Float
pub unsafe fn as_float_unchecked(&self) -> Float
Safety
TODO
sourcepub unsafe fn as_luaref_unchecked(&self) -> LuaRef
pub unsafe fn as_luaref_unchecked(&self) -> LuaRef
Safety
TODO
sourcepub unsafe fn into_string_unchecked(self) -> String
pub unsafe fn into_string_unchecked(self) -> String
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
Safety
TODO
Extracts the contained Dictionary value without checking that the
object actually contains a Dictionary.
Trait Implementations§
source§impl From<Dictionary> for Object
impl From<Dictionary> for Object
source§fn from(dictionary: Dictionary) -> Self
fn from(dictionary: Dictionary) -> Self
Converts to this type from the input type.
source§impl<T> FromIterator<T> for Objectwhere
T: Into<Object>,
impl<T> FromIterator<T> for Objectwhere T: Into<Object>,
source§fn 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
source§impl FromObject for Object
impl FromObject for Object
source§impl PartialEq<Object> for Object
impl PartialEq<Object> for Object
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§
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