pub struct DescriptorId(/* private fields */);Expand description
A collision-proof unique identifier for a descriptor.
Implementations§
Source§impl DescriptorId
impl DescriptorId
Sourcepub fn from_bytes(bytes: Vec<u8>) -> Result<Self, HashParseError>
pub fn from_bytes(bytes: Vec<u8>) -> Result<Self, HashParseError>
Construct a hash-like type from 32 bytes.
Sourcepub fn from_string(hex: String) -> Result<Self, HashParseError>
pub fn from_string(hex: String) -> Result<Self, HashParseError>
Construct a hash-like type from a hex string.
Trait Implementations§
Source§impl Clone for DescriptorId
impl Clone for DescriptorId
Source§fn clone(&self) -> DescriptorId
fn clone(&self) -> DescriptorId
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 Debug for DescriptorId
impl Debug for DescriptorId
Source§impl Display for DescriptorId
impl Display for DescriptorId
Source§impl Hash for DescriptorId
impl Hash for DescriptorId
Source§impl<UT> LiftRef<UT> for DescriptorId
impl<UT> LiftRef<UT> for DescriptorId
type LiftType = Arc<DescriptorId>
Source§impl<UT> LowerError<UT> for DescriptorId
impl<UT> LowerError<UT> for DescriptorId
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for DescriptorId
impl<UT> LowerReturn<UT> for DescriptorId
Source§type ReturnType = <Arc<DescriptorId> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<DescriptorId> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl Ord for DescriptorId
impl Ord for DescriptorId
Source§fn cmp(&self, other: &DescriptorId) -> Ordering
fn cmp(&self, other: &DescriptorId) -> 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 DescriptorId
impl PartialEq for DescriptorId
Source§impl PartialOrd for DescriptorId
impl PartialOrd for DescriptorId
Source§impl<UT> TypeId<UT> for DescriptorId
impl<UT> TypeId<UT> for DescriptorId
const TYPE_ID_META: MetadataBuffer
impl Copy for DescriptorId
impl Eq for DescriptorId
impl StructuralPartialEq for DescriptorId
Auto Trait Implementations§
impl Freeze for DescriptorId
impl RefUnwindSafe for DescriptorId
impl Send for DescriptorId
impl Sync for DescriptorId
impl Unpin for DescriptorId
impl UnwindSafe for DescriptorId
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more