Struct scrypto::prelude::radix_engine_common::prelude::traversal::CurrentValueInfo
source · pub struct CurrentValueInfo<E>where
E: CustomExtension,{
pub type_id: LocalTypeId,
pub value_kind: ValueKind<<E as CustomExtension>::CustomValueKind>,
pub variant: Option<u8>,
pub error: Option<TypedTraversalError<E>>,
}
Fields§
§type_id: LocalTypeId
§value_kind: ValueKind<<E as CustomExtension>::CustomValueKind>
§variant: Option<u8>
§error: Option<TypedTraversalError<E>>
Implementations§
source§impl<E> CurrentValueInfo<E>where
E: CustomExtension,
impl<E> CurrentValueInfo<E>where
E: CustomExtension,
pub fn for_value( type_id: LocalTypeId, value_kind: ValueKind<<E as CustomExtension>::CustomValueKind> ) -> CurrentValueInfo<E>
pub fn for_container( type_id: LocalTypeId, container_header: &ContainerHeader<<E as CustomExtension>::CustomTraversal> ) -> CurrentValueInfo<E>
pub fn for_enum_variant( type_id: LocalTypeId, variant: u8 ) -> CurrentValueInfo<E>
Trait Implementations§
source§impl<E> Clone for CurrentValueInfo<E>
impl<E> Clone for CurrentValueInfo<E>
source§fn clone(&self) -> CurrentValueInfo<E>
fn clone(&self) -> CurrentValueInfo<E>
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<E> Debug for CurrentValueInfo<E>
impl<E> Debug for CurrentValueInfo<E>
source§impl<E> PartialEq for CurrentValueInfo<E>
impl<E> PartialEq for CurrentValueInfo<E>
source§fn eq(&self, other: &CurrentValueInfo<E>) -> bool
fn eq(&self, other: &CurrentValueInfo<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<E> Eq for CurrentValueInfo<E>
impl<E> StructuralPartialEq for CurrentValueInfo<E>where
E: CustomExtension,
Auto Trait Implementations§
impl<E> RefUnwindSafe for CurrentValueInfo<E>where
<<E as CustomExtension>::CustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId>: RefUnwindSafe,
<E as CustomExtension>::CustomValueKind: RefUnwindSafe,
impl<E> Send for CurrentValueInfo<E>where
<<E as CustomExtension>::CustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId>: Send,
<E as CustomExtension>::CustomValueKind: Send,
impl<E> Sync for CurrentValueInfo<E>where
<<E as CustomExtension>::CustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId>: Sync,
<E as CustomExtension>::CustomValueKind: Sync,
impl<E> Unpin for CurrentValueInfo<E>where
<<E as CustomExtension>::CustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId>: Unpin,
<E as CustomExtension>::CustomValueKind: Unpin,
impl<E> UnwindSafe for CurrentValueInfo<E>where
<<E as CustomExtension>::CustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId>: UnwindSafe,
<E as CustomExtension>::CustomValueKind: UnwindSafe,
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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