Skip to main content

CurrencyCode

Enum CurrencyCode 

Source
pub enum CurrencyCode {
Show 179 variants Aed, Afn, All, Amd, Ang, Aoa, Ars, Aud, Awg, Azn, Bam, Bbd, Bdt, Bgn, Bhd, Bif, Bmd, Bnd, Bob, Bov, Brl, Bsd, Btn, Bwp, Byn, Bzd, Cad, Cdf, Che, Chf, Chw, Clf, Clp, Cny, Cop, Cou, Crc, Cuc, Cup, Cve, Czk, Djf, Dkk, Dop, Dzd, Egp, Ern, Etb, Eur, Fjd, Fkp, Gbp, Gel, Ghs, Gip, Gmd, Gnf, Gtq, Gyd, Hkd, Hnl, Htg, Huf, Idr, Ils, Inr, Iqd, Irr, Isk, Jmd, Jod, Jpy, Kes, Kgs, Khr, Kmf, Kpw, Krw, Kwd, Kyd, Kzt, Lak, Lbp, Lkr, Lrd, Lsl, Lyd, Mad, Mdl, Mga, Mkd, Mmk, Mnt, Mop, Mru, Mur, Mvr, Mwk, Mxn, Mxv, Myr, Mzn, Nad, Ngn, Nio, Nok, Npr, Nzd, Omr, Pab, Pen, Pgk, Php, Pkr, Pln, Pyg, Qar, Ron, Rsd, Rub, Rwf, Sar, Sbd, Scr, Sdg, Sek, Sgd, Shp, Sle, Sos, Srd, Ssp, Stn, Svc, Syp, Szl, Thb, Tjs, Tmt, Tnd, Top, Try, Ttd, Twd, Tzs, Uah, Ugx, Usd, Usn, Uyi, Uyu, Uyw, Uzs, Ved, Ves, Vnd, Vuv, Wst, Xaf, Xag, Xau, Xba, Xbb, Xbc, Xbd, Xcd, Xdr, Xof, Xpd, Xpf, Xpt, Xsu, Xts, Xua, Xxx, Yer, Zar, Zmw, Zwg,
}
Expand description

ISO 4217 alphabetic currency code.

Parsing accepts canonical uppercase spellings only (e.g. "USD", not "usd").

Variants§

§

Aed

ISO 4217 AED.

§

Afn

ISO 4217 AFN.

§

All

ISO 4217 ALL.

§

Amd

ISO 4217 AMD.

§

Ang

ISO 4217 ANG.

§

Aoa

ISO 4217 AOA.

§

Ars

ISO 4217 ARS.

§

Aud

ISO 4217 AUD.

§

Awg

ISO 4217 AWG.

§

Azn

ISO 4217 AZN.

§

Bam

ISO 4217 BAM.

§

Bbd

ISO 4217 BBD.

§

Bdt

ISO 4217 BDT.

§

Bgn

ISO 4217 BGN.

§

Bhd

ISO 4217 BHD.

§

Bif

ISO 4217 BIF.

§

Bmd

ISO 4217 BMD.

§

Bnd

ISO 4217 BND.

§

Bob

ISO 4217 BOB.

§

Bov

ISO 4217 BOV.

§

Brl

ISO 4217 BRL.

§

Bsd

ISO 4217 BSD.

§

Btn

ISO 4217 BTN.

§

Bwp

ISO 4217 BWP.

§

Byn

ISO 4217 BYN.

§

Bzd

ISO 4217 BZD.

§

Cad

ISO 4217 CAD.

§

Cdf

ISO 4217 CDF.

§

Che

ISO 4217 CHE.

§

Chf

ISO 4217 CHF.

§

Chw

ISO 4217 CHW.

§

Clf

ISO 4217 CLF.

§

Clp

ISO 4217 CLP.

§

Cny

ISO 4217 CNY.

§

Cop

ISO 4217 COP.

§

Cou

ISO 4217 COU.

§

Crc

ISO 4217 CRC.

§

Cuc

ISO 4217 CUC.

§

Cup

ISO 4217 CUP.

§

Cve

ISO 4217 CVE.

§

Czk

ISO 4217 CZK.

§

Djf

ISO 4217 DJF.

§

Dkk

ISO 4217 DKK.

§

Dop

ISO 4217 DOP.

§

Dzd

ISO 4217 DZD.

§

Egp

ISO 4217 EGP.

§

Ern

ISO 4217 ERN.

§

Etb

ISO 4217 ETB.

§

Eur

ISO 4217 EUR.

§

Fjd

ISO 4217 FJD.

§

Fkp

ISO 4217 FKP.

§

Gbp

ISO 4217 GBP.

§

Gel

ISO 4217 GEL.

§

Ghs

ISO 4217 GHS.

§

Gip

ISO 4217 GIP.

§

Gmd

ISO 4217 GMD.

§

Gnf

ISO 4217 GNF.

§

Gtq

ISO 4217 GTQ.

§

Gyd

ISO 4217 GYD.

§

Hkd

ISO 4217 HKD.

§

Hnl

ISO 4217 HNL.

§

Htg

ISO 4217 HTG.

§

Huf

ISO 4217 HUF.

§

Idr

ISO 4217 IDR.

§

Ils

ISO 4217 ILS.

§

Inr

ISO 4217 INR.

§

Iqd

ISO 4217 IQD.

§

Irr

ISO 4217 IRR.

§

Isk

ISO 4217 ISK.

§

Jmd

ISO 4217 JMD.

§

Jod

ISO 4217 JOD.

§

Jpy

ISO 4217 JPY.

§

Kes

ISO 4217 KES.

§

Kgs

ISO 4217 KGS.

§

Khr

ISO 4217 KHR.

§

Kmf

ISO 4217 KMF.

§

Kpw

ISO 4217 KPW.

§

Krw

ISO 4217 KRW.

§

Kwd

ISO 4217 KWD.

§

Kyd

ISO 4217 KYD.

§

Kzt

ISO 4217 KZT.

§

Lak

ISO 4217 LAK.

§

Lbp

ISO 4217 LBP.

§

Lkr

ISO 4217 LKR.

§

Lrd

ISO 4217 LRD.

§

Lsl

ISO 4217 LSL.

§

Lyd

ISO 4217 LYD.

§

Mad

ISO 4217 MAD.

§

Mdl

ISO 4217 MDL.

§

Mga

ISO 4217 MGA.

§

Mkd

ISO 4217 MKD.

§

Mmk

ISO 4217 MMK.

§

Mnt

ISO 4217 MNT.

§

Mop

ISO 4217 MOP.

§

Mru

ISO 4217 MRU.

§

Mur

ISO 4217 MUR.

§

Mvr

ISO 4217 MVR.

§

Mwk

ISO 4217 MWK.

§

Mxn

ISO 4217 MXN.

§

Mxv

ISO 4217 MXV.

§

Myr

ISO 4217 MYR.

§

Mzn

ISO 4217 MZN.

§

Nad

ISO 4217 NAD.

§

Ngn

ISO 4217 NGN.

§

Nio

ISO 4217 NIO.

§

Nok

ISO 4217 NOK.

§

Npr

ISO 4217 NPR.

§

Nzd

ISO 4217 NZD.

§

Omr

ISO 4217 OMR.

§

Pab

ISO 4217 PAB.

§

Pen

ISO 4217 PEN.

§

Pgk

ISO 4217 PGK.

§

Php

ISO 4217 PHP.

§

Pkr

ISO 4217 PKR.

§

Pln

ISO 4217 PLN.

§

Pyg

ISO 4217 PYG.

§

Qar

ISO 4217 QAR.

§

Ron

ISO 4217 RON.

§

Rsd

ISO 4217 RSD.

§

Rub

ISO 4217 RUB.

§

Rwf

ISO 4217 RWF.

§

Sar

ISO 4217 SAR.

§

Sbd

ISO 4217 SBD.

§

Scr

ISO 4217 SCR.

§

Sdg

ISO 4217 SDG.

§

Sek

ISO 4217 SEK.

§

Sgd

ISO 4217 SGD.

§

Shp

ISO 4217 SHP.

§

Sle

ISO 4217 SLE.

§

Sos

ISO 4217 SOS.

§

Srd

ISO 4217 SRD.

§

Ssp

ISO 4217 SSP.

§

Stn

ISO 4217 STN.

§

Svc

ISO 4217 SVC.

§

Syp

ISO 4217 SYP.

§

Szl

ISO 4217 SZL.

§

Thb

ISO 4217 THB.

§

Tjs

ISO 4217 TJS.

§

Tmt

ISO 4217 TMT.

§

Tnd

ISO 4217 TND.

§

Top

ISO 4217 TOP.

§

Try

ISO 4217 TRY.

§

Ttd

ISO 4217 TTD.

§

Twd

ISO 4217 TWD.

§

Tzs

ISO 4217 TZS.

§

Uah

ISO 4217 UAH.

§

Ugx

ISO 4217 UGX.

§

Usd

ISO 4217 USD.

§

Usn

ISO 4217 USN.

§

Uyi

ISO 4217 UYI.

§

Uyu

ISO 4217 UYU.

§

Uyw

ISO 4217 UYW.

§

Uzs

ISO 4217 UZS.

§

Ved

ISO 4217 VED.

§

Ves

ISO 4217 VES.

§

Vnd

ISO 4217 VND.

§

Vuv

ISO 4217 VUV.

§

Wst

ISO 4217 WST.

§

Xaf

ISO 4217 XAF.

§

Xag

ISO 4217 XAG.

§

Xau

ISO 4217 XAU.

§

Xba

ISO 4217 XBA.

§

Xbb

ISO 4217 XBB.

§

Xbc

ISO 4217 XBC.

§

Xbd

ISO 4217 XBD.

§

Xcd

ISO 4217 XCD.

§

Xdr

ISO 4217 XDR.

§

Xof

ISO 4217 XOF.

§

Xpd

ISO 4217 XPD.

§

Xpf

ISO 4217 XPF.

§

Xpt

ISO 4217 XPT.

§

Xsu

ISO 4217 XSU.

§

Xts

ISO 4217 XTS.

§

Xua

ISO 4217 XUA.

§

Xxx

ISO 4217 XXX.

§

Yer

ISO 4217 YER.

§

Zar

ISO 4217 ZAR.

§

Zmw

ISO 4217 ZMW.

§

Zwg

ISO 4217 ZWG.

Implementations§

Source§

impl CurrencyCode

Source

pub const fn all() -> &'static [CurrencyCode]

All known codes in this crate version.

Source

pub const fn as_str(self) -> &'static str

Alphabetic code ("USD").

Source

pub const fn exponent(self) -> u32

ISO 4217 minor-unit exponent (digits after the decimal in major units).

Trait Implementations§

Source§

impl Clone for CurrencyCode

Source§

fn clone(&self) -> CurrencyCode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for CurrencyCode

Source§

impl Debug for CurrencyCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CurrencyCode

Source§

fn deserialize<D>( deserializer: D, ) -> Result<CurrencyCode, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for CurrencyCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for CurrencyCode

Source§

impl FromStr for CurrencyCode

Source§

type Err = ParseCurrencyCodeError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<CurrencyCode, <CurrencyCode as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for CurrencyCode

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for CurrencyCode

Source§

fn eq(&self, other: &CurrencyCode) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for CurrencyCode

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CurrencyCode

Source§

impl TryFrom<&str> for CurrencyCode

Source§

type Error = ParseCurrencyCodeError

The type returned in the event of a conversion error.
Source§

fn try_from( value: &str, ) -> Result<CurrencyCode, <CurrencyCode as TryFrom<&str>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<U> As for U

Source§

fn as_<T>(self) -> T
where T: CastFrom<U>, U: Sized,

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 more
Source§

impl<T> AsyncFriendly for T
where T: Send + Sync + 'static,

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Generator<T> for T
where T: Clone,

Source§

fn generate(&mut self) -> T

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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 more
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> NeighborPriorityQueueIdType for T
where T: Eq + Clone + Copy + Debug + Display + Send + Sync,

Source§

impl<T> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows 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
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows 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
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .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
where Self: BorrowMut<B>, B: ?Sized,

Calls .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
where Self: AsRef<R>, R: ?Sized,

Calls .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
where Self: AsMut<R>, R: ?Sized,

Calls .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
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool