#[repr(C)]pub struct Object { /* private fields */ }Expand description
Binding to a Neovim object.
Represents any valid Neovim type.
Implementations
sourceimpl Object
impl Object
pub fn is_nil(&self) -> bool
pub fn is_some(&self) -> bool
pub fn from_luaref(luaref: i32) -> Object
pub fn kind(&self) -> ObjectKind
pub unsafe fn as_boolean_unchecked(&self) -> bool
pub unsafe fn as_integer_unchecked(&self) -> i64
pub unsafe fn as_float_unchecked(&self) -> f64
pub unsafe fn as_luaref_unchecked(&self) -> i32
sourcepub unsafe fn into_string_unchecked(self) -> String
pub unsafe fn into_string_unchecked(self) -> String
sourcepub unsafe fn into_array_unchecked(self) -> KVec<Object>
pub unsafe fn into_array_unchecked(self) -> KVec<Object>
sourcepub unsafe fn into_dict_unchecked(self) -> KVec<KeyValuePair>
pub unsafe fn into_dict_unchecked(self) -> KVec<KeyValuePair>
Extracts the contained Dictionary value without checking that the
object actually contains 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) -> Object
fn from(pos: &WindowRelativeTo) -> Object
Converts to this type from the input type.
sourceimpl From<ExtmarkPosition> for Object
impl From<ExtmarkPosition> for Object
sourcefn from(pos: ExtmarkPosition) -> Object
fn from(pos: ExtmarkPosition) -> Object
Converts to this type from the input type.
sourceimpl From<KVec<KeyValuePair>> for Object
impl From<KVec<KeyValuePair>> for Object
sourcefn from(dictionary: KVec<KeyValuePair>) -> Object
fn from(dictionary: KVec<KeyValuePair>) -> Object
Converts to this type from the input type.
sourceimpl From<WindowAnchor> for Object
impl From<WindowAnchor> for Object
sourcefn from(anchor: WindowAnchor) -> Object
fn from(anchor: WindowAnchor) -> Object
Converts to this type from the input type.
sourceimpl From<WindowBorder> for Object
impl From<WindowBorder> for Object
sourcefn from(border: WindowBorder) -> Object
fn from(border: WindowBorder) -> Object
Converts to this type from the input type.
sourceimpl From<WindowBorderChar> for Object
impl From<WindowBorderChar> for Object
sourcefn from(side: WindowBorderChar) -> Object
fn from(side: WindowBorderChar) -> Object
Converts to this type from the input type.
sourceimpl From<WindowStyle> for Object
impl From<WindowStyle> for Object
sourcefn from(style: WindowStyle) -> Object
fn from(style: WindowStyle) -> Object
Converts to this type from the input type.
sourceimpl<T> FromIterator<T> for Objectwhere
T: Into<Object>,
impl<T> FromIterator<T> for Objectwhere
T: Into<Object>,
sourcefn from_iter<I>(iter: I) -> Objectwhere
I: IntoIterator<Item = T>,
fn from_iter<I>(iter: I) -> Objectwhere
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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