Struct scrypto::data::scrypto::ScryptoValueDisplayContext
source · pub struct ScryptoValueDisplayContext<'a> {
pub address_bech32_encoder: Option<&'a AddressBech32Encoder>,
}
Fields§
§address_bech32_encoder: Option<&'a AddressBech32Encoder>
Implementations§
source§impl<'a> ScryptoValueDisplayContext<'a>
impl<'a> ScryptoValueDisplayContext<'a>
pub fn no_context() -> ScryptoValueDisplayContext<'a>
pub fn with_optional_bech32( address_bech32_encoder: Option<&'a AddressBech32Encoder> ) -> ScryptoValueDisplayContext<'a>
Trait Implementations§
source§impl<'a> Clone for ScryptoValueDisplayContext<'a>
impl<'a> Clone for ScryptoValueDisplayContext<'a>
source§fn clone(&self) -> ScryptoValueDisplayContext<'a>
fn clone(&self) -> ScryptoValueDisplayContext<'a>
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<'a> CustomDisplayContext<'a> for ScryptoValueDisplayContext<'a>
impl<'a> CustomDisplayContext<'a> for ScryptoValueDisplayContext<'a>
source§impl<'a> Debug for ScryptoValueDisplayContext<'a>
impl<'a> Debug for ScryptoValueDisplayContext<'a>
source§impl<'a> Default for ScryptoValueDisplayContext<'a>
impl<'a> Default for ScryptoValueDisplayContext<'a>
source§fn default() -> ScryptoValueDisplayContext<'a>
fn default() -> ScryptoValueDisplayContext<'a>
Returns the “default value” for a type. Read more
source§impl<'a> Into<ScryptoValueDisplayContext<'a>> for &'a AddressBech32Encoder
impl<'a> Into<ScryptoValueDisplayContext<'a>> for &'a AddressBech32Encoder
source§fn into(self) -> ScryptoValueDisplayContext<'a>
fn into(self) -> ScryptoValueDisplayContext<'a>
Converts this type into the (usually inferred) input type.
source§impl<'a> Into<ScryptoValueDisplayContext<'a>> for Option<&'a AddressBech32Encoder>
impl<'a> Into<ScryptoValueDisplayContext<'a>> for Option<&'a AddressBech32Encoder>
source§fn into(self) -> ScryptoValueDisplayContext<'a>
fn into(self) -> ScryptoValueDisplayContext<'a>
Converts this type into the (usually inferred) input type.
impl<'a> Copy for ScryptoValueDisplayContext<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ScryptoValueDisplayContext<'a>
impl<'a> Send for ScryptoValueDisplayContext<'a>
impl<'a> Sync for ScryptoValueDisplayContext<'a>
impl<'a> Unpin for ScryptoValueDisplayContext<'a>
impl<'a> UnwindSafe for ScryptoValueDisplayContext<'a>
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