pub struct TransactionHashDisplayContext<'a> {
pub encoder: Option<&'a TransactionHashBech32Encoder>,
}
Fields§
§encoder: Option<&'a TransactionHashBech32Encoder>
Implementations§
Source§impl<'a> TransactionHashDisplayContext<'a>
impl<'a> TransactionHashDisplayContext<'a>
pub fn with_encoder(encoder: &'a TransactionHashBech32Encoder) -> Self
Trait Implementations§
Source§impl<'a> Clone for TransactionHashDisplayContext<'a>
impl<'a> Clone for TransactionHashDisplayContext<'a>
Source§fn clone(&self) -> TransactionHashDisplayContext<'a>
fn clone(&self) -> TransactionHashDisplayContext<'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<TransactionHashDisplayContext<'a>> for IntentHash
impl<'a> ContextualDisplay<TransactionHashDisplayContext<'a>> for IntentHash
type Error = Error
Source§fn contextual_format<F: Write>(
&self,
f: &mut F,
context: &TransactionHashDisplayContext<'a>,
) -> Result<(), Self::Error>
fn contextual_format<F: Write>( &self, f: &mut F, context: &TransactionHashDisplayContext<'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<TransactionHashDisplayContext<'a>> for LedgerTransactionHash
impl<'a> ContextualDisplay<TransactionHashDisplayContext<'a>> for LedgerTransactionHash
type Error = Error
Source§fn contextual_format<F: Write>(
&self,
f: &mut F,
context: &TransactionHashDisplayContext<'a>,
) -> Result<(), Self::Error>
fn contextual_format<F: Write>( &self, f: &mut F, context: &TransactionHashDisplayContext<'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<TransactionHashDisplayContext<'a>> for NotarizedTransactionHash
impl<'a> ContextualDisplay<TransactionHashDisplayContext<'a>> for NotarizedTransactionHash
type Error = Error
Source§fn contextual_format<F: Write>(
&self,
f: &mut F,
context: &TransactionHashDisplayContext<'a>,
) -> Result<(), Self::Error>
fn contextual_format<F: Write>( &self, f: &mut F, context: &TransactionHashDisplayContext<'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<TransactionHashDisplayContext<'a>> for SignedTransactionIntentHash
impl<'a> ContextualDisplay<TransactionHashDisplayContext<'a>> for SignedTransactionIntentHash
type Error = Error
Source§fn contextual_format<F: Write>(
&self,
f: &mut F,
context: &TransactionHashDisplayContext<'a>,
) -> Result<(), Self::Error>
fn contextual_format<F: Write>( &self, f: &mut F, context: &TransactionHashDisplayContext<'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<TransactionHashDisplayContext<'a>> for SubintentHash
impl<'a> ContextualDisplay<TransactionHashDisplayContext<'a>> for SubintentHash
type Error = Error
Source§fn contextual_format<F: Write>(
&self,
f: &mut F,
context: &TransactionHashDisplayContext<'a>,
) -> Result<(), Self::Error>
fn contextual_format<F: Write>( &self, f: &mut F, context: &TransactionHashDisplayContext<'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<TransactionHashDisplayContext<'a>> for SystemTransactionHash
impl<'a> ContextualDisplay<TransactionHashDisplayContext<'a>> for SystemTransactionHash
type Error = Error
Source§fn contextual_format<F: Write>(
&self,
f: &mut F,
context: &TransactionHashDisplayContext<'a>,
) -> Result<(), Self::Error>
fn contextual_format<F: Write>( &self, f: &mut F, context: &TransactionHashDisplayContext<'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<TransactionHashDisplayContext<'a>> for TransactionIntentHash
impl<'a> ContextualDisplay<TransactionHashDisplayContext<'a>> for TransactionIntentHash
type Error = Error
Source§fn contextual_format<F: Write>(
&self,
f: &mut F,
context: &TransactionHashDisplayContext<'a>,
) -> Result<(), Self::Error>
fn contextual_format<F: Write>( &self, f: &mut F, context: &TransactionHashDisplayContext<'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 TransactionHashBech32Encoder> for TransactionHashDisplayContext<'a>
impl<'a> From<&'a TransactionHashBech32Encoder> for TransactionHashDisplayContext<'a>
Source§fn from(encoder: &'a TransactionHashBech32Encoder) -> Self
fn from(encoder: &'a TransactionHashBech32Encoder) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Option<&'a TransactionHashBech32Encoder>> for TransactionHashDisplayContext<'a>
impl<'a> From<Option<&'a TransactionHashBech32Encoder>> for TransactionHashDisplayContext<'a>
Source§fn from(encoder: Option<&'a TransactionHashBech32Encoder>) -> Self
fn from(encoder: Option<&'a TransactionHashBech32Encoder>) -> Self
Converts to this type from the input type.
impl<'a> Copy for TransactionHashDisplayContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for TransactionHashDisplayContext<'a>
impl<'a> RefUnwindSafe for TransactionHashDisplayContext<'a>
impl<'a> Send for TransactionHashDisplayContext<'a>
impl<'a> Sync for TransactionHashDisplayContext<'a>
impl<'a> Unpin for TransactionHashDisplayContext<'a>
impl<'a> UnwindSafe for TransactionHashDisplayContext<'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