Struct stam::DataKeyHandle
source · pub struct DataKeyHandle(/* private fields */);Expand description
Handle to an instance of DataKey in the store (AnnotationDataSet)
Trait Implementations§
source§impl Clone for DataKeyHandle
impl Clone for DataKeyHandle
source§fn clone(&self) -> DataKeyHandle
fn clone(&self) -> DataKeyHandle
Returns a copy 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 moresource§impl DataSize for DataKeyHandle
impl DataSize for DataKeyHandle
source§const IS_DYNAMIC: bool = false
const IS_DYNAMIC: bool = false
If
true, the type has a heap size that can vary at runtime, depending on the actual value.source§const STATIC_HEAP_SIZE: usize = 0usize
const STATIC_HEAP_SIZE: usize = 0usize
The amount of space a value of the type always occupies. If
IS_DYNAMIC is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
Estimates the size of heap memory taken up by this value. Read more
source§impl Debug for DataKeyHandle
impl Debug for DataKeyHandle
source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for DataKeyHandle
impl<'bytes, Ctx> Decode<'bytes, Ctx> for DataKeyHandle
source§impl<Ctx> Encode<Ctx> for DataKeyHandle
impl<Ctx> Encode<Ctx> for DataKeyHandle
source§impl<'a> From<&DataKeyHandle> for BuildItem<'a, DataKey>
impl<'a> From<&DataKeyHandle> for BuildItem<'a, DataKey>
source§fn from(handle: &DataKeyHandle) -> Self
fn from(handle: &DataKeyHandle) -> Self
Converts to this type from the input type.
source§impl<'a> From<DataKeyHandle> for BuildItem<'a, DataKey>
impl<'a> From<DataKeyHandle> for BuildItem<'a, DataKey>
source§fn from(handle: DataKeyHandle) -> Self
fn from(handle: DataKeyHandle) -> Self
Converts to this type from the input type.
source§impl Handle for DataKeyHandle
impl Handle for DataKeyHandle
source§impl Hash for DataKeyHandle
impl Hash for DataKeyHandle
source§impl Ord for DataKeyHandle
impl Ord for DataKeyHandle
source§fn cmp(&self, other: &DataKeyHandle) -> Ordering
fn cmp(&self, other: &DataKeyHandle) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DataKeyHandle
impl PartialEq for DataKeyHandle
source§fn eq(&self, other: &DataKeyHandle) -> bool
fn eq(&self, other: &DataKeyHandle) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for DataKeyHandle
impl PartialOrd for DataKeyHandle
source§fn partial_cmp(&self, other: &DataKeyHandle) -> Option<Ordering>
fn partial_cmp(&self, other: &DataKeyHandle) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl<'a> Request<DataKey> for DataKeyHandle
impl<'a> Request<DataKey> for DataKeyHandle
source§fn to_handle<'store, S>(&self, _store: &'store S) -> Option<DataKeyHandle>
fn to_handle<'store, S>(&self, _store: &'store S) -> Option<DataKeyHandle>
Returns the handle for this item, looking it up in the store
source§fn requested_id(&self) -> Option<&str>
fn requested_id(&self) -> Option<&str>
If this type encapsulates an Id, this returns it (borrowed)
source§fn requested_id_owned(self) -> Option<String>
fn requested_id_owned(self) -> Option<String>
If this type encapsulates an Id, this returns it (oened)
source§fn requested_handle(&self) -> Option<T::HandleType>
fn requested_handle(&self) -> Option<T::HandleType>
If this type encapsulates a handle, this returns it
impl Copy for DataKeyHandle
impl Eq for DataKeyHandle
impl StructuralEq for DataKeyHandle
impl StructuralPartialEq for DataKeyHandle
Auto Trait Implementations§
impl RefUnwindSafe for DataKeyHandle
impl Send for DataKeyHandle
impl Sync for DataKeyHandle
impl Unpin for DataKeyHandle
impl UnwindSafe for DataKeyHandle
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