pub struct TypeAttrColumn(/* private fields */);Expand description
A registry-owned type-attribute column indexed by runtime type.
TypeAttrColumn::get returns owning copies. Registration must not race
with reads.
Implementations§
Source§impl TypeAttrColumn
impl TypeAttrColumn
Sourcepub fn get(self, type_index: i32) -> Option<Any>
pub fn get(self, type_index: i32) -> Option<Any>
The attribute of type_index, as an owned value, or None if unset.
Sourcepub fn get_raw_ffi_any(self, type_index: i32) -> Option<TVMFFIAny>
pub fn get_raw_ffi_any(self, type_index: i32) -> Option<TVMFFIAny>
The raw cell of type_index’s attribute, borrowed from the registry.
The cell does not retain its value: the value must stay registered while
the cell is used, and registration must not race with reads. Use
Self::get for an owned Any.
Returns None when the index is outside the column or the column has no
data. Unlike Self::get, it returns a None-valued cell as Some.
Trait Implementations§
Source§impl Clone for TypeAttrColumn
impl Clone for TypeAttrColumn
Source§fn clone(&self) -> TypeAttrColumn
fn clone(&self) -> TypeAttrColumn
Returns a duplicate 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 moreimpl Copy for TypeAttrColumn
impl Send for TypeAttrColumn
impl Sync for TypeAttrColumn
Auto Trait Implementations§
impl Freeze for TypeAttrColumn
impl RefUnwindSafe for TypeAttrColumn
impl Unpin for TypeAttrColumn
impl UnsafeUnpin for TypeAttrColumn
impl UnwindSafe for TypeAttrColumn
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