Struct stam::TextResourceHandle
source · pub struct TextResourceHandle(/* private fields */);Expand description
Handle to an instance of TextResource in the store (AnnotationStore).
Trait Implementations§
source§impl Clone for TextResourceHandle
impl Clone for TextResourceHandle
source§fn clone(&self) -> TextResourceHandle
fn clone(&self) -> TextResourceHandle
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 TextResourceHandle
impl DataSize for TextResourceHandle
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 TextResourceHandle
impl Debug for TextResourceHandle
source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for TextResourceHandle
impl<'bytes, Ctx> Decode<'bytes, Ctx> for TextResourceHandle
source§impl<Ctx> Encode<Ctx> for TextResourceHandle
impl<Ctx> Encode<Ctx> for TextResourceHandle
source§impl<'a> From<&TextResourceHandle> for BuildItem<'a, TextResource>
impl<'a> From<&TextResourceHandle> for BuildItem<'a, TextResource>
source§fn from(handle: &TextResourceHandle) -> Self
fn from(handle: &TextResourceHandle) -> Self
Converts to this type from the input type.
source§impl<'a> From<TextResourceHandle> for BuildItem<'a, TextResource>
impl<'a> From<TextResourceHandle> for BuildItem<'a, TextResource>
source§fn from(handle: TextResourceHandle) -> Self
fn from(handle: TextResourceHandle) -> Self
Converts to this type from the input type.
source§impl Handle for TextResourceHandle
impl Handle for TextResourceHandle
source§impl Hash for TextResourceHandle
impl Hash for TextResourceHandle
source§impl Ord for TextResourceHandle
impl Ord for TextResourceHandle
source§fn cmp(&self, other: &TextResourceHandle) -> Ordering
fn cmp(&self, other: &TextResourceHandle) -> 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 TextResourceHandle
impl PartialEq for TextResourceHandle
source§fn eq(&self, other: &TextResourceHandle) -> bool
fn eq(&self, other: &TextResourceHandle) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for TextResourceHandle
impl PartialOrd for TextResourceHandle
source§fn partial_cmp(&self, other: &TextResourceHandle) -> Option<Ordering>
fn partial_cmp(&self, other: &TextResourceHandle) -> 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<TextResource> for TextResourceHandle
impl<'a> Request<TextResource> for TextResourceHandle
source§fn to_handle<'store, S>(&self, _store: &'store S) -> Option<TextResourceHandle>where
S: StoreFor<TextResource>,
fn to_handle<'store, S>(&self, _store: &'store S) -> Option<TextResourceHandle>where
S: StoreFor<TextResource>,
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 TextResourceHandle
impl Eq for TextResourceHandle
impl StructuralPartialEq for TextResourceHandle
Auto Trait Implementations§
impl Freeze for TextResourceHandle
impl RefUnwindSafe for TextResourceHandle
impl Send for TextResourceHandle
impl Sync for TextResourceHandle
impl Unpin for TextResourceHandle
impl UnwindSafe for TextResourceHandle
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more