#[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) -> i64
pub unsafe fn as_integer_unchecked(&self) -> i64
TODO: docs
sourcepub unsafe fn as_float_unchecked(&self) -> f64
pub unsafe fn as_float_unchecked(&self) -> f64
TODO: docs
sourcepub unsafe fn into_string_unchecked(self) -> String
pub unsafe fn into_string_unchecked(self) -> String
sourcepub unsafe fn into_array_unchecked(self) -> Collection<Object>
pub unsafe fn into_array_unchecked(self) -> Collection<Object>
sourcepub unsafe fn into_dict_unchecked(self) -> Collection<KeyValuePair>
pub unsafe fn into_dict_unchecked(self) -> Collection<KeyValuePair>
Extracts the inner Dictionary from the object, without checking that
the object actually represents a Dictionary.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Object
impl<'de> Deserialize<'de> for Object
sourcefn deserialize<D>(
deserializer: D
) -> Result<Object, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Object, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<&WindowRelativeTo> for Object
impl From<&WindowRelativeTo> for Object
sourcefn from(pos: &WindowRelativeTo) -> Self
fn from(pos: &WindowRelativeTo) -> Self
Converts to this type from the input type.
sourceimpl From<ExtmarkPosition> for Object
impl From<ExtmarkPosition> for Object
sourcefn from(pos: ExtmarkPosition) -> Self
fn from(pos: ExtmarkPosition) -> Self
Converts to this type from the input type.
sourceimpl From<WindowAnchor> for Object
impl From<WindowAnchor> for Object
sourcefn from(anchor: WindowAnchor) -> Self
fn from(anchor: WindowAnchor) -> Self
Converts to this type from the input type.
sourceimpl From<WindowBorder> for Object
impl From<WindowBorder> for Object
sourcefn from(border: WindowBorder) -> Self
fn from(border: WindowBorder) -> Self
Converts to this type from the input type.
sourceimpl From<WindowBorderChar> for Object
impl From<WindowBorderChar> for Object
sourcefn from(side: WindowBorderChar) -> Self
fn from(side: WindowBorderChar) -> Self
Converts to this type from the input type.
sourceimpl From<WindowStyle> for Object
impl From<WindowStyle> for Object
sourcefn from(style: WindowStyle) -> Self
fn from(style: WindowStyle) -> Self
Converts to this type from the input type.
sourceimpl<T> FromIterator<T> for Object where
T: Into<Object>,
impl<T> FromIterator<T> for Object where
T: Into<Object>,
sourcefn from_iter<I>(iter: I) -> Object where
I: IntoIterator<Item = T>,
fn from_iter<I>(iter: I) -> Object where
I: IntoIterator<Item = T>,
Creates a value from an iterator. Read more
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