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