pub struct Store { /* private fields */ }Expand description
A Storage area for keys and addresses
Implementations§
Source§impl Store
impl Store
Sourcepub fn find_secret_key(
&self,
alias_pkh_or_pk: impl AsRef<str>,
) -> Option<&StoredKeypair<SecretKey>>
pub fn find_secret_key( &self, alias_pkh_or_pk: impl AsRef<str>, ) -> Option<&StoredKeypair<SecretKey>>
Find the stored key by an alias, a public key hash or a public key.
Sourcepub fn find_public_key(
&self,
alias_or_pkh: impl AsRef<str>,
) -> Option<&CommonPublicKey>
pub fn find_public_key( &self, alias_or_pkh: impl AsRef<str>, ) -> Option<&CommonPublicKey>
Find the stored key by an alias, a public key hash or a public key.
Sourcepub fn find_spending_key(
&self,
alias: impl AsRef<str>,
) -> Option<&StoredKeypair<StoreSpendingKey>>
pub fn find_spending_key( &self, alias: impl AsRef<str>, ) -> Option<&StoredKeypair<StoreSpendingKey>>
Find the spending key with the given alias and return it
Sourcepub fn find_viewing_key(
&self,
alias: impl AsRef<str>,
) -> Option<&ExtendedViewingKey>
pub fn find_viewing_key( &self, alias: impl AsRef<str>, ) -> Option<&ExtendedViewingKey>
Find the viewing key with the given alias and return it
Sourcepub fn find_birthday(&self, alias: impl AsRef<str>) -> Option<&BlockHeight>
pub fn find_birthday(&self, alias: impl AsRef<str>) -> Option<&BlockHeight>
Find the birthday of the given alias
Sourcepub fn find_diversifier_index(
&self,
alias: impl AsRef<str>,
) -> Option<&DiversifierIndex>
pub fn find_diversifier_index( &self, alias: impl AsRef<str>, ) -> Option<&DiversifierIndex>
Find the diversifier of the given alias
Sourcepub fn find_payment_addr(
&self,
alias: impl AsRef<str>,
) -> Option<&PaymentAddress>
pub fn find_payment_addr( &self, alias: impl AsRef<str>, ) -> Option<&PaymentAddress>
Find the payment address with the given alias and return it
Sourcepub fn find_alias_by_payment_addr(
&self,
payment_address: &PaymentAddress,
) -> Option<&Alias>
pub fn find_alias_by_payment_addr( &self, payment_address: &PaymentAddress, ) -> Option<&Alias>
Find an alias by the address if it’s in the wallet.
Sourcepub fn find_key_by_pk(
&self,
pk: &CommonPublicKey,
) -> Option<&StoredKeypair<SecretKey>>
pub fn find_key_by_pk( &self, pk: &CommonPublicKey, ) -> Option<&StoredKeypair<SecretKey>>
Find the stored key by a public key.
Sourcepub fn find_key_by_pkh(
&self,
pkh: &PublicKeyHash,
) -> Option<&StoredKeypair<SecretKey>>
pub fn find_key_by_pkh( &self, pkh: &PublicKeyHash, ) -> Option<&StoredKeypair<SecretKey>>
Find the stored key by a public key hash.
Sourcepub fn find_alias_by_pkh(&self, pkh: &PublicKeyHash) -> Option<Alias>
pub fn find_alias_by_pkh(&self, pkh: &PublicKeyHash) -> Option<Alias>
Find the stored alias for a public key hash.
Sourcepub fn find_path_by_pkh(&self, pkh: &PublicKeyHash) -> Option<DerivationPath>
pub fn find_path_by_pkh(&self, pkh: &PublicKeyHash) -> Option<DerivationPath>
Find a derivation path by public key hash
Sourcepub fn find_path_by_viewing_key(
&self,
viewing_key: &ExtendedViewingKey,
) -> Option<DerivationPath>
pub fn find_path_by_viewing_key( &self, viewing_key: &ExtendedViewingKey, ) -> Option<DerivationPath>
Find a derivation path by viewing key
Sourcepub fn find_public_key_by_pkh(
&self,
pkh: &PublicKeyHash,
) -> Option<&CommonPublicKey>
pub fn find_public_key_by_pkh( &self, pkh: &PublicKeyHash, ) -> Option<&CommonPublicKey>
Find the public key by a public key hash.
Sourcepub fn find_address(&self, alias: impl AsRef<str>) -> Option<&Address>
pub fn find_address(&self, alias: impl AsRef<str>) -> Option<&Address>
Find the stored address by an alias.
Sourcepub fn find_alias(&self, address: &Address) -> Option<&Alias>
pub fn find_alias(&self, address: &Address) -> Option<&Alias>
Find an alias by the address if it’s in the wallet.
Sourcepub fn get_secret_keys(
&self,
) -> BTreeMap<Alias, (&StoredKeypair<SecretKey>, Option<&PublicKeyHash>)>
pub fn get_secret_keys( &self, ) -> BTreeMap<Alias, (&StoredKeypair<SecretKey>, Option<&PublicKeyHash>)>
Get all known keys by their alias, paired with PKH, if known.
Sourcepub fn get_public_keys(&self) -> &BTreeMap<Alias, CommonPublicKey>
pub fn get_public_keys(&self) -> &BTreeMap<Alias, CommonPublicKey>
Get all known public keys by their alias.
Sourcepub fn get_addresses(&self) -> &BiBTreeMap<Alias, Address>
pub fn get_addresses(&self) -> &BiBTreeMap<Alias, Address>
Get all known addresses by their alias.
Sourcepub fn get_payment_addrs(&self) -> &BiBTreeMap<Alias, PaymentAddress>
pub fn get_payment_addrs(&self) -> &BiBTreeMap<Alias, PaymentAddress>
Get all known payment addresses by their alias.
Sourcepub fn get_viewing_keys(&self) -> &BTreeMap<Alias, ExtendedViewingKey>
pub fn get_viewing_keys(&self) -> &BTreeMap<Alias, ExtendedViewingKey>
Get all known viewing keys by their alias.
Sourcepub fn get_spending_keys(
&self,
) -> &BTreeMap<Alias, StoredKeypair<StoreSpendingKey>>
pub fn get_spending_keys( &self, ) -> &BTreeMap<Alias, StoredKeypair<StoreSpendingKey>>
Get all known spending keys by their alias.
Sourcepub fn add_validator_data(&mut self, address: Address, keys: ValidatorKeys)
pub fn add_validator_data(&mut self, address: Address, keys: ValidatorKeys)
Add validator data to the store
Sourcepub fn get_validator_data(&self) -> Option<&ValidatorData>
pub fn get_validator_data(&self) -> Option<&ValidatorData>
Returns a reference to the validator data, if it exists.
Sourcepub fn get_validator_data_mut(&mut self) -> Option<&mut ValidatorData>
pub fn get_validator_data_mut(&mut self) -> Option<&mut ValidatorData>
Returns a mut reference to the validator data, if it exists.
Sourcepub fn take_validator_data(&mut self) -> Option<ValidatorData>
pub fn take_validator_data(&mut self) -> Option<ValidatorData>
Take the validator data, if it exists.
Sourcepub fn into_validator_data(self) -> Option<ValidatorData>
pub fn into_validator_data(self) -> Option<ValidatorData>
Returns the validator data, if it exists.
Sourcepub fn insert_keypair<U>(
&mut self,
alias: Alias,
keypair: SecretKey,
password: Option<Zeroizing<String>>,
address: Option<Address>,
path: Option<DerivationPath>,
force: bool,
) -> Option<Alias>where
U: WalletIo,
pub fn insert_keypair<U>(
&mut self,
alias: Alias,
keypair: SecretKey,
password: Option<Zeroizing<String>>,
address: Option<Address>,
path: Option<DerivationPath>,
force: bool,
) -> Option<Alias>where
U: WalletIo,
Insert a new secret key with the given alias. If the alias is already used, will prompt for overwrite/reselection confirmation. If declined, then keypair is not inserted and nothing is returned, otherwise selected alias is returned.
Sourcepub fn insert_spending_key<U>(
&mut self,
alias: Alias,
spendkey: ExtendedSpendingKey,
birthday: Option<BlockHeight>,
password: Option<Zeroizing<String>>,
path: Option<DerivationPath>,
force: bool,
) -> Option<Alias>where
U: WalletIo,
pub fn insert_spending_key<U>(
&mut self,
alias: Alias,
spendkey: ExtendedSpendingKey,
birthday: Option<BlockHeight>,
password: Option<Zeroizing<String>>,
path: Option<DerivationPath>,
force: bool,
) -> Option<Alias>where
U: WalletIo,
Insert spending keys similarly to how it’s done for keypairs
Sourcepub fn insert_viewing_key<U>(
&mut self,
alias: Alias,
viewkey: ExtendedViewingKey,
birthday: Option<BlockHeight>,
path: Option<DerivationPath>,
force: bool,
) -> Option<Alias>where
U: WalletIo,
pub fn insert_viewing_key<U>(
&mut self,
alias: Alias,
viewkey: ExtendedViewingKey,
birthday: Option<BlockHeight>,
path: Option<DerivationPath>,
force: bool,
) -> Option<Alias>where
U: WalletIo,
Insert viewing keys similarly to how it’s done for keypairs
Sourcepub fn insert_public_key<U>(
&mut self,
alias: Alias,
pubkey: CommonPublicKey,
address: Option<Address>,
path: Option<DerivationPath>,
force: bool,
) -> Option<Alias>where
U: WalletIo,
pub fn insert_public_key<U>(
&mut self,
alias: Alias,
pubkey: CommonPublicKey,
address: Option<Address>,
path: Option<DerivationPath>,
force: bool,
) -> Option<Alias>where
U: WalletIo,
Insert public keys
Sourcepub fn insert_payment_addr<U>(
&mut self,
alias: Alias,
payment_addr: PaymentAddress,
force: bool,
) -> Option<Alias>where
U: WalletIo,
pub fn insert_payment_addr<U>(
&mut self,
alias: Alias,
payment_addr: PaymentAddress,
force: bool,
) -> Option<Alias>where
U: WalletIo,
Insert payment addresses similarly to how it’s done for keypairs
Sourcepub fn insert_diversifier_index(
&mut self,
alias: Alias,
div_index: DiversifierIndex,
) -> Option<Alias>
pub fn insert_diversifier_index( &mut self, alias: Alias, div_index: DiversifierIndex, ) -> Option<Alias>
Insert the given diversifier index under the given alias. Useful for sequential payment address generation.
Sourcepub fn insert_address<U>(
&mut self,
alias: Alias,
address: Address,
force: bool,
) -> Option<Alias>where
U: WalletIo,
pub fn insert_address<U>(
&mut self,
alias: Alias,
address: Address,
force: bool,
) -> Option<Alias>where
U: WalletIo,
Insert a new address with the given alias. If the alias is already used, will prompt for overwrite/reselection confirmation, which when declined, the address won’t be added. Return the selected alias if the address has been added.
Sourcepub fn contains_alias(&self, alias: &Alias) -> bool
pub fn contains_alias(&self, alias: &Alias) -> bool
Check if any map of the wallet contains the given alias
Sourcepub fn remove_alias(&mut self, alias: &Alias)
pub fn remove_alias(&mut self, alias: &Alias)
Completely remove the given alias from all maps in the wallet
Sourcepub fn extend(&mut self, store: Store)
pub fn extend(&mut self, store: Store)
Extend this store from another store (typically pre-genesis).
Note that this method ignores validator_data if any.
Sourcepub fn extend_from_pre_genesis_validator(
&mut self,
validator_address: Address,
validator_alias: Alias,
other: ValidatorWallet,
)
pub fn extend_from_pre_genesis_validator( &mut self, validator_address: Address, validator_alias: Alias, other: ValidatorWallet, )
Extend this store from pre-genesis validator wallet.
Sourcepub fn get_addresses_with_vp_type(
&self,
vp_type: AddressVpType,
) -> IndexSet<Address>
pub fn get_addresses_with_vp_type( &self, vp_type: AddressVpType, ) -> IndexSet<Address>
get an address with the vp type
Sourcepub fn add_vp_type_to_address(
&mut self,
vp_type: AddressVpType,
address: Address,
)
pub fn add_vp_type_to_address( &mut self, vp_type: AddressVpType, address: Address, )
Adds a VP type to the address
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Store
impl<'de> Deserialize<'de> for Store
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Store, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Store, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for Store
impl Serialize for Store
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnwindSafe for Store
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T, Raw> IntoResponse<Raw> for Twhere
T: Into<Raw>,
impl<T, Raw> IntoResponse<Raw> for Twhere
T: Into<Raw>,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read moreSource§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
Source§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
Source§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Source§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.