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