Struct stam::AnnotationDataHandle
source · pub struct AnnotationDataHandle(/* private fields */);Expand description
Handle to an instance of AnnotationData in the store (AnnotationDataSet).
Trait Implementations§
source§impl Clone for AnnotationDataHandle
impl Clone for AnnotationDataHandle
source§fn clone(&self) -> AnnotationDataHandle
fn clone(&self) -> AnnotationDataHandle
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 AnnotationDataHandle
impl DataSize for AnnotationDataHandle
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 AnnotationDataHandle
impl Debug for AnnotationDataHandle
source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for AnnotationDataHandle
impl<'bytes, Ctx> Decode<'bytes, Ctx> for AnnotationDataHandle
source§impl<Ctx> Encode<Ctx> for AnnotationDataHandle
impl<Ctx> Encode<Ctx> for AnnotationDataHandle
source§impl From<&AnnotationDataHandle> for BuildItem<'_, AnnotationData>
impl From<&AnnotationDataHandle> for BuildItem<'_, AnnotationData>
source§fn from(handle: &AnnotationDataHandle) -> Self
fn from(handle: &AnnotationDataHandle) -> Self
Converts to this type from the input type.
source§impl From<AnnotationDataHandle> for BuildItem<'_, AnnotationData>
impl From<AnnotationDataHandle> for BuildItem<'_, AnnotationData>
source§fn from(handle: AnnotationDataHandle) -> Self
fn from(handle: AnnotationDataHandle) -> Self
Converts to this type from the input type.
source§impl Handle for AnnotationDataHandle
impl Handle for AnnotationDataHandle
source§impl Hash for AnnotationDataHandle
impl Hash for AnnotationDataHandle
source§impl Ord for AnnotationDataHandle
impl Ord for AnnotationDataHandle
source§fn cmp(&self, other: &AnnotationDataHandle) -> Ordering
fn cmp(&self, other: &AnnotationDataHandle) -> 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 AnnotationDataHandle
impl PartialEq for AnnotationDataHandle
source§fn eq(&self, other: &AnnotationDataHandle) -> bool
fn eq(&self, other: &AnnotationDataHandle) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for AnnotationDataHandle
impl PartialOrd for AnnotationDataHandle
source§fn partial_cmp(&self, other: &AnnotationDataHandle) -> Option<Ordering>
fn partial_cmp(&self, other: &AnnotationDataHandle) -> 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<AnnotationData> for AnnotationDataHandle
impl<'a> Request<AnnotationData> for AnnotationDataHandle
source§fn to_handle<'store, S>(
&self,
_store: &'store S
) -> Option<AnnotationDataHandle>where
S: StoreFor<AnnotationData>,
fn to_handle<'store, S>(
&self,
_store: &'store S
) -> Option<AnnotationDataHandle>where
S: StoreFor<AnnotationData>,
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 AnnotationDataHandle
impl Eq for AnnotationDataHandle
impl StructuralEq for AnnotationDataHandle
impl StructuralPartialEq for AnnotationDataHandle
Auto Trait Implementations§
impl RefUnwindSafe for AnnotationDataHandle
impl Send for AnnotationDataHandle
impl Sync for AnnotationDataHandle
impl Unpin for AnnotationDataHandle
impl UnwindSafe for AnnotationDataHandle
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