pub struct AddressDisplayContext<'a> {
pub encoder: Option<&'a AddressBech32Encoder>,
}
Fields§
§encoder: Option<&'a AddressBech32Encoder>
Implementations§
Source§impl<'a> AddressDisplayContext<'a>
impl<'a> AddressDisplayContext<'a>
pub fn with_encoder(encoder: &'a AddressBech32Encoder) -> Self
Trait Implementations§
Source§impl<'a> Clone for AddressDisplayContext<'a>
impl<'a> Clone for AddressDisplayContext<'a>
Source§fn clone(&self) -> AddressDisplayContext<'a>
fn clone(&self) -> AddressDisplayContext<'a>
Returns a duplicate 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> ContextualDisplay<AddressDisplayContext<'a>> for BlueprintId
impl<'a> ContextualDisplay<AddressDisplayContext<'a>> for BlueprintId
type Error = Error
Source§fn contextual_format<F: Write>(
&self,
f: &mut F,
context: &AddressDisplayContext<'a>,
) -> Result<(), Self::Error>
fn contextual_format<F: Write>( &self, f: &mut F, context: &AddressDisplayContext<'a>, ) -> Result<(), Self::Error>
Formats the value to the given
fmt::Write
buffer, making use of the provided context.
See also format
, which is typically easier to use, as it takes an Into<Context>
instead of a &Context
.Source§fn format<F, TContext>(
&self,
f: &mut F,
context: TContext,
) -> Result<(), Self::Error>
fn format<F, TContext>( &self, f: &mut F, context: TContext, ) -> Result<(), Self::Error>
Formats the value to the given
fmt::Write
buffer, making use of the provided context.
See also contextual_format
, which takes a &Context
instead of an Into<Context>
. Read moreSource§fn display<'a, 'b, TContext>(
&'a self,
context: TContext,
) -> ContextDisplayable<'a, Self, Context>where
TContext: Into<Context>,
fn display<'a, 'b, TContext>(
&'a self,
context: TContext,
) -> ContextDisplayable<'a, Self, Context>where
TContext: Into<Context>,
fn to_string<'a, 'b, TContext>(&'a self, context: TContext) -> Stringwhere
TContext: Into<Context>,
Source§impl<'a> ContextualDisplay<AddressDisplayContext<'a>> for ComponentAddress
impl<'a> ContextualDisplay<AddressDisplayContext<'a>> for ComponentAddress
type Error = AddressBech32EncodeError
Source§fn contextual_format<F: Write>(
&self,
f: &mut F,
context: &AddressDisplayContext<'a>,
) -> Result<(), Self::Error>
fn contextual_format<F: Write>( &self, f: &mut F, context: &AddressDisplayContext<'a>, ) -> Result<(), Self::Error>
Formats the value to the given
fmt::Write
buffer, making use of the provided context.
See also format
, which is typically easier to use, as it takes an Into<Context>
instead of a &Context
.Source§fn format<F, TContext>(
&self,
f: &mut F,
context: TContext,
) -> Result<(), Self::Error>
fn format<F, TContext>( &self, f: &mut F, context: TContext, ) -> Result<(), Self::Error>
Formats the value to the given
fmt::Write
buffer, making use of the provided context.
See also contextual_format
, which takes a &Context
instead of an Into<Context>
. Read moreSource§fn display<'a, 'b, TContext>(
&'a self,
context: TContext,
) -> ContextDisplayable<'a, Self, Context>where
TContext: Into<Context>,
fn display<'a, 'b, TContext>(
&'a self,
context: TContext,
) -> ContextDisplayable<'a, Self, Context>where
TContext: Into<Context>,
fn to_string<'a, 'b, TContext>(&'a self, context: TContext) -> Stringwhere
TContext: Into<Context>,
Source§impl<'a> ContextualDisplay<AddressDisplayContext<'a>> for GlobalAddress
impl<'a> ContextualDisplay<AddressDisplayContext<'a>> for GlobalAddress
type Error = AddressBech32EncodeError
Source§fn contextual_format<F: Write>(
&self,
f: &mut F,
context: &AddressDisplayContext<'a>,
) -> Result<(), Self::Error>
fn contextual_format<F: Write>( &self, f: &mut F, context: &AddressDisplayContext<'a>, ) -> Result<(), Self::Error>
Formats the value to the given
fmt::Write
buffer, making use of the provided context.
See also format
, which is typically easier to use, as it takes an Into<Context>
instead of a &Context
.Source§fn format<F, TContext>(
&self,
f: &mut F,
context: TContext,
) -> Result<(), Self::Error>
fn format<F, TContext>( &self, f: &mut F, context: TContext, ) -> Result<(), Self::Error>
Formats the value to the given
fmt::Write
buffer, making use of the provided context.
See also contextual_format
, which takes a &Context
instead of an Into<Context>
. Read moreSource§fn display<'a, 'b, TContext>(
&'a self,
context: TContext,
) -> ContextDisplayable<'a, Self, Context>where
TContext: Into<Context>,
fn display<'a, 'b, TContext>(
&'a self,
context: TContext,
) -> ContextDisplayable<'a, Self, Context>where
TContext: Into<Context>,
fn to_string<'a, 'b, TContext>(&'a self, context: TContext) -> Stringwhere
TContext: Into<Context>,
Source§impl<'a> ContextualDisplay<AddressDisplayContext<'a>> for InternalAddress
impl<'a> ContextualDisplay<AddressDisplayContext<'a>> for InternalAddress
type Error = AddressBech32EncodeError
Source§fn contextual_format<F: Write>(
&self,
f: &mut F,
context: &AddressDisplayContext<'a>,
) -> Result<(), Self::Error>
fn contextual_format<F: Write>( &self, f: &mut F, context: &AddressDisplayContext<'a>, ) -> Result<(), Self::Error>
Formats the value to the given
fmt::Write
buffer, making use of the provided context.
See also format
, which is typically easier to use, as it takes an Into<Context>
instead of a &Context
.Source§fn format<F, TContext>(
&self,
f: &mut F,
context: TContext,
) -> Result<(), Self::Error>
fn format<F, TContext>( &self, f: &mut F, context: TContext, ) -> Result<(), Self::Error>
Formats the value to the given
fmt::Write
buffer, making use of the provided context.
See also contextual_format
, which takes a &Context
instead of an Into<Context>
. Read moreSource§fn display<'a, 'b, TContext>(
&'a self,
context: TContext,
) -> ContextDisplayable<'a, Self, Context>where
TContext: Into<Context>,
fn display<'a, 'b, TContext>(
&'a self,
context: TContext,
) -> ContextDisplayable<'a, Self, Context>where
TContext: Into<Context>,
fn to_string<'a, 'b, TContext>(&'a self, context: TContext) -> Stringwhere
TContext: Into<Context>,
Source§impl<'a> ContextualDisplay<AddressDisplayContext<'a>> for NodeId
impl<'a> ContextualDisplay<AddressDisplayContext<'a>> for NodeId
type Error = AddressBech32EncodeError
Source§fn contextual_format<F: Write>(
&self,
f: &mut F,
context: &AddressDisplayContext<'a>,
) -> Result<(), Self::Error>
fn contextual_format<F: Write>( &self, f: &mut F, context: &AddressDisplayContext<'a>, ) -> Result<(), Self::Error>
Formats the value to the given
fmt::Write
buffer, making use of the provided context.
See also format
, which is typically easier to use, as it takes an Into<Context>
instead of a &Context
.Source§fn format<F, TContext>(
&self,
f: &mut F,
context: TContext,
) -> Result<(), Self::Error>
fn format<F, TContext>( &self, f: &mut F, context: TContext, ) -> Result<(), Self::Error>
Formats the value to the given
fmt::Write
buffer, making use of the provided context.
See also contextual_format
, which takes a &Context
instead of an Into<Context>
. Read moreSource§fn display<'a, 'b, TContext>(
&'a self,
context: TContext,
) -> ContextDisplayable<'a, Self, Context>where
TContext: Into<Context>,
fn display<'a, 'b, TContext>(
&'a self,
context: TContext,
) -> ContextDisplayable<'a, Self, Context>where
TContext: Into<Context>,
fn to_string<'a, 'b, TContext>(&'a self, context: TContext) -> Stringwhere
TContext: Into<Context>,
Source§impl<'a> ContextualDisplay<AddressDisplayContext<'a>> for NonFungibleGlobalId
impl<'a> ContextualDisplay<AddressDisplayContext<'a>> for NonFungibleGlobalId
type Error = Error
Source§fn contextual_format<F: Write>(
&self,
f: &mut F,
context: &AddressDisplayContext<'a>,
) -> Result<(), Self::Error>
fn contextual_format<F: Write>( &self, f: &mut F, context: &AddressDisplayContext<'a>, ) -> Result<(), Self::Error>
Formats the value to the given
fmt::Write
buffer, making use of the provided context.
See also format
, which is typically easier to use, as it takes an Into<Context>
instead of a &Context
.Source§fn format<F, TContext>(
&self,
f: &mut F,
context: TContext,
) -> Result<(), Self::Error>
fn format<F, TContext>( &self, f: &mut F, context: TContext, ) -> Result<(), Self::Error>
Formats the value to the given
fmt::Write
buffer, making use of the provided context.
See also contextual_format
, which takes a &Context
instead of an Into<Context>
. Read moreSource§fn display<'a, 'b, TContext>(
&'a self,
context: TContext,
) -> ContextDisplayable<'a, Self, Context>where
TContext: Into<Context>,
fn display<'a, 'b, TContext>(
&'a self,
context: TContext,
) -> ContextDisplayable<'a, Self, Context>where
TContext: Into<Context>,
fn to_string<'a, 'b, TContext>(&'a self, context: TContext) -> Stringwhere
TContext: Into<Context>,
Source§impl<'a> ContextualDisplay<AddressDisplayContext<'a>> for PackageAddress
impl<'a> ContextualDisplay<AddressDisplayContext<'a>> for PackageAddress
type Error = AddressBech32EncodeError
Source§fn contextual_format<F: Write>(
&self,
f: &mut F,
context: &AddressDisplayContext<'a>,
) -> Result<(), Self::Error>
fn contextual_format<F: Write>( &self, f: &mut F, context: &AddressDisplayContext<'a>, ) -> Result<(), Self::Error>
Formats the value to the given
fmt::Write
buffer, making use of the provided context.
See also format
, which is typically easier to use, as it takes an Into<Context>
instead of a &Context
.Source§fn format<F, TContext>(
&self,
f: &mut F,
context: TContext,
) -> Result<(), Self::Error>
fn format<F, TContext>( &self, f: &mut F, context: TContext, ) -> Result<(), Self::Error>
Formats the value to the given
fmt::Write
buffer, making use of the provided context.
See also contextual_format
, which takes a &Context
instead of an Into<Context>
. Read moreSource§fn display<'a, 'b, TContext>(
&'a self,
context: TContext,
) -> ContextDisplayable<'a, Self, Context>where
TContext: Into<Context>,
fn display<'a, 'b, TContext>(
&'a self,
context: TContext,
) -> ContextDisplayable<'a, Self, Context>where
TContext: Into<Context>,
fn to_string<'a, 'b, TContext>(&'a self, context: TContext) -> Stringwhere
TContext: Into<Context>,
Source§impl<'a> ContextualDisplay<AddressDisplayContext<'a>> for ResourceAddress
impl<'a> ContextualDisplay<AddressDisplayContext<'a>> for ResourceAddress
type Error = AddressBech32EncodeError
Source§fn contextual_format<F: Write>(
&self,
f: &mut F,
context: &AddressDisplayContext<'a>,
) -> Result<(), Self::Error>
fn contextual_format<F: Write>( &self, f: &mut F, context: &AddressDisplayContext<'a>, ) -> Result<(), Self::Error>
Formats the value to the given
fmt::Write
buffer, making use of the provided context.
See also format
, which is typically easier to use, as it takes an Into<Context>
instead of a &Context
.Source§fn format<F, TContext>(
&self,
f: &mut F,
context: TContext,
) -> Result<(), Self::Error>
fn format<F, TContext>( &self, f: &mut F, context: TContext, ) -> Result<(), Self::Error>
Formats the value to the given
fmt::Write
buffer, making use of the provided context.
See also contextual_format
, which takes a &Context
instead of an Into<Context>
. Read moreSource§fn display<'a, 'b, TContext>(
&'a self,
context: TContext,
) -> ContextDisplayable<'a, Self, Context>where
TContext: Into<Context>,
fn display<'a, 'b, TContext>(
&'a self,
context: TContext,
) -> ContextDisplayable<'a, Self, Context>where
TContext: Into<Context>,
fn to_string<'a, 'b, TContext>(&'a self, context: TContext) -> Stringwhere
TContext: Into<Context>,
Source§impl<'a> From<&'a AddressBech32Encoder> for AddressDisplayContext<'a>
impl<'a> From<&'a AddressBech32Encoder> for AddressDisplayContext<'a>
Source§fn from(encoder: &'a AddressBech32Encoder) -> Self
fn from(encoder: &'a AddressBech32Encoder) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Option<&'a AddressBech32Encoder>> for AddressDisplayContext<'a>
impl<'a> From<Option<&'a AddressBech32Encoder>> for AddressDisplayContext<'a>
Source§fn from(encoder: Option<&'a AddressBech32Encoder>) -> Self
fn from(encoder: Option<&'a AddressBech32Encoder>) -> Self
Converts to this type from the input type.
Source§impl<'a> Into<ScryptoValueDisplayContext<'a>> for AddressDisplayContext<'a>
impl<'a> Into<ScryptoValueDisplayContext<'a>> for AddressDisplayContext<'a>
Source§fn into(self) -> ScryptoValueDisplayContext<'a>
fn into(self) -> ScryptoValueDisplayContext<'a>
Converts this type into the (usually inferred) input type.
impl<'a> Copy for AddressDisplayContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for AddressDisplayContext<'a>
impl<'a> RefUnwindSafe for AddressDisplayContext<'a>
impl<'a> Send for AddressDisplayContext<'a>
impl<'a> Sync for AddressDisplayContext<'a>
impl<'a> Unpin for AddressDisplayContext<'a>
impl<'a> UnwindSafe for AddressDisplayContext<'a>
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