Struct LocaleFlags

Source
pub struct LocaleFlags { /* private fields */ }
Expand description

Bitmask of locales the content should be used for.

Implementations§

Source§

impl LocaleFlags

Source

pub const fn new() -> Self

Returns an instance with zero initialized data.

Source§

impl LocaleFlags

Source

pub const fn into_bytes(self) -> [u8; 4]

Returns the underlying bits.

§Layout

The returned byte array is layed out in the same way as described here.

Source

pub const fn from_bytes(bytes: [u8; 4]) -> Self

Converts the given bytes directly into the bitfield struct.

Source§

impl LocaleFlags

Source

pub fn en_us(&self) -> <bool as Specifier>::InOut

Returns the value of en_us.

Source

pub fn en_us_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of en_us.

§Errors

If the returned value contains an invalid bit pattern for en_us.

Source

pub fn with_en_us(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of en_us set to the given value.

§Panics

If the given value is out of bounds for en_us.

Source

pub fn with_en_us_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of en_us set to the given value.

§Errors

If the given value is out of bounds for en_us.

Source

pub fn set_en_us(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of en_us to the given value.

§Panics

If the given value is out of bounds for en_us.

Source

pub fn set_en_us_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of en_us to the given value.

§Errors

If the given value is out of bounds for en_us.

Source

pub fn ko_kr(&self) -> <bool as Specifier>::InOut

Returns the value of ko_kr.

Source

pub fn ko_kr_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of ko_kr.

§Errors

If the returned value contains an invalid bit pattern for ko_kr.

Source

pub fn with_ko_kr(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of ko_kr set to the given value.

§Panics

If the given value is out of bounds for ko_kr.

Source

pub fn with_ko_kr_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of ko_kr set to the given value.

§Errors

If the given value is out of bounds for ko_kr.

Source

pub fn set_ko_kr(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of ko_kr to the given value.

§Panics

If the given value is out of bounds for ko_kr.

Source

pub fn set_ko_kr_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of ko_kr to the given value.

§Errors

If the given value is out of bounds for ko_kr.

Source

pub fn fr_fr(&self) -> <bool as Specifier>::InOut

Returns the value of fr_fr.

Source

pub fn fr_fr_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of fr_fr.

§Errors

If the returned value contains an invalid bit pattern for fr_fr.

Source

pub fn with_fr_fr(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of fr_fr set to the given value.

§Panics

If the given value is out of bounds for fr_fr.

Source

pub fn with_fr_fr_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of fr_fr set to the given value.

§Errors

If the given value is out of bounds for fr_fr.

Source

pub fn set_fr_fr(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of fr_fr to the given value.

§Panics

If the given value is out of bounds for fr_fr.

Source

pub fn set_fr_fr_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of fr_fr to the given value.

§Errors

If the given value is out of bounds for fr_fr.

Source

pub fn de_de(&self) -> <bool as Specifier>::InOut

Returns the value of de_de.

Source

pub fn de_de_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of de_de.

§Errors

If the returned value contains an invalid bit pattern for de_de.

Source

pub fn with_de_de(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of de_de set to the given value.

§Panics

If the given value is out of bounds for de_de.

Source

pub fn with_de_de_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of de_de set to the given value.

§Errors

If the given value is out of bounds for de_de.

Source

pub fn set_de_de(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of de_de to the given value.

§Panics

If the given value is out of bounds for de_de.

Source

pub fn set_de_de_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of de_de to the given value.

§Errors

If the given value is out of bounds for de_de.

Source

pub fn zh_cn(&self) -> <bool as Specifier>::InOut

Returns the value of zh_cn.

Source

pub fn zh_cn_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of zh_cn.

§Errors

If the returned value contains an invalid bit pattern for zh_cn.

Source

pub fn with_zh_cn(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of zh_cn set to the given value.

§Panics

If the given value is out of bounds for zh_cn.

Source

pub fn with_zh_cn_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of zh_cn set to the given value.

§Errors

If the given value is out of bounds for zh_cn.

Source

pub fn set_zh_cn(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of zh_cn to the given value.

§Panics

If the given value is out of bounds for zh_cn.

Source

pub fn set_zh_cn_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of zh_cn to the given value.

§Errors

If the given value is out of bounds for zh_cn.

Source

pub fn es_es(&self) -> <bool as Specifier>::InOut

Returns the value of es_es.

Source

pub fn es_es_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of es_es.

§Errors

If the returned value contains an invalid bit pattern for es_es.

Source

pub fn with_es_es(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of es_es set to the given value.

§Panics

If the given value is out of bounds for es_es.

Source

pub fn with_es_es_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of es_es set to the given value.

§Errors

If the given value is out of bounds for es_es.

Source

pub fn set_es_es(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of es_es to the given value.

§Panics

If the given value is out of bounds for es_es.

Source

pub fn set_es_es_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of es_es to the given value.

§Errors

If the given value is out of bounds for es_es.

Source

pub fn zh_tw(&self) -> <bool as Specifier>::InOut

Returns the value of zh_tw.

Source

pub fn zh_tw_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of zh_tw.

§Errors

If the returned value contains an invalid bit pattern for zh_tw.

Source

pub fn with_zh_tw(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of zh_tw set to the given value.

§Panics

If the given value is out of bounds for zh_tw.

Source

pub fn with_zh_tw_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of zh_tw set to the given value.

§Errors

If the given value is out of bounds for zh_tw.

Source

pub fn set_zh_tw(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of zh_tw to the given value.

§Panics

If the given value is out of bounds for zh_tw.

Source

pub fn set_zh_tw_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of zh_tw to the given value.

§Errors

If the given value is out of bounds for zh_tw.

Source

pub fn en_gb(&self) -> <bool as Specifier>::InOut

Returns the value of en_gb.

Source

pub fn en_gb_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of en_gb.

§Errors

If the returned value contains an invalid bit pattern for en_gb.

Source

pub fn with_en_gb(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of en_gb set to the given value.

§Panics

If the given value is out of bounds for en_gb.

Source

pub fn with_en_gb_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of en_gb set to the given value.

§Errors

If the given value is out of bounds for en_gb.

Source

pub fn set_en_gb(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of en_gb to the given value.

§Panics

If the given value is out of bounds for en_gb.

Source

pub fn set_en_gb_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of en_gb to the given value.

§Errors

If the given value is out of bounds for en_gb.

Source

pub fn en_cn(&self) -> <bool as Specifier>::InOut

Returns the value of en_cn.

Source

pub fn en_cn_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of en_cn.

§Errors

If the returned value contains an invalid bit pattern for en_cn.

Source

pub fn with_en_cn(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of en_cn set to the given value.

§Panics

If the given value is out of bounds for en_cn.

Source

pub fn with_en_cn_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of en_cn set to the given value.

§Errors

If the given value is out of bounds for en_cn.

Source

pub fn set_en_cn(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of en_cn to the given value.

§Panics

If the given value is out of bounds for en_cn.

Source

pub fn set_en_cn_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of en_cn to the given value.

§Errors

If the given value is out of bounds for en_cn.

Source

pub fn en_tw(&self) -> <bool as Specifier>::InOut

Returns the value of en_tw.

Source

pub fn en_tw_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of en_tw.

§Errors

If the returned value contains an invalid bit pattern for en_tw.

Source

pub fn with_en_tw(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of en_tw set to the given value.

§Panics

If the given value is out of bounds for en_tw.

Source

pub fn with_en_tw_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of en_tw set to the given value.

§Errors

If the given value is out of bounds for en_tw.

Source

pub fn set_en_tw(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of en_tw to the given value.

§Panics

If the given value is out of bounds for en_tw.

Source

pub fn set_en_tw_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of en_tw to the given value.

§Errors

If the given value is out of bounds for en_tw.

Source

pub fn es_mx(&self) -> <bool as Specifier>::InOut

Returns the value of es_mx.

Source

pub fn es_mx_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of es_mx.

§Errors

If the returned value contains an invalid bit pattern for es_mx.

Source

pub fn with_es_mx(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of es_mx set to the given value.

§Panics

If the given value is out of bounds for es_mx.

Source

pub fn with_es_mx_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of es_mx set to the given value.

§Errors

If the given value is out of bounds for es_mx.

Source

pub fn set_es_mx(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of es_mx to the given value.

§Panics

If the given value is out of bounds for es_mx.

Source

pub fn set_es_mx_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of es_mx to the given value.

§Errors

If the given value is out of bounds for es_mx.

Source

pub fn ru_ru(&self) -> <bool as Specifier>::InOut

Returns the value of ru_ru.

Source

pub fn ru_ru_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of ru_ru.

§Errors

If the returned value contains an invalid bit pattern for ru_ru.

Source

pub fn with_ru_ru(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of ru_ru set to the given value.

§Panics

If the given value is out of bounds for ru_ru.

Source

pub fn with_ru_ru_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of ru_ru set to the given value.

§Errors

If the given value is out of bounds for ru_ru.

Source

pub fn set_ru_ru(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of ru_ru to the given value.

§Panics

If the given value is out of bounds for ru_ru.

Source

pub fn set_ru_ru_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of ru_ru to the given value.

§Errors

If the given value is out of bounds for ru_ru.

Source

pub fn pt_br(&self) -> <bool as Specifier>::InOut

Returns the value of pt_br.

Source

pub fn pt_br_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of pt_br.

§Errors

If the returned value contains an invalid bit pattern for pt_br.

Source

pub fn with_pt_br(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of pt_br set to the given value.

§Panics

If the given value is out of bounds for pt_br.

Source

pub fn with_pt_br_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of pt_br set to the given value.

§Errors

If the given value is out of bounds for pt_br.

Source

pub fn set_pt_br(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of pt_br to the given value.

§Panics

If the given value is out of bounds for pt_br.

Source

pub fn set_pt_br_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of pt_br to the given value.

§Errors

If the given value is out of bounds for pt_br.

Source

pub fn it_it(&self) -> <bool as Specifier>::InOut

Returns the value of it_it.

Source

pub fn it_it_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of it_it.

§Errors

If the returned value contains an invalid bit pattern for it_it.

Source

pub fn with_it_it(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of it_it set to the given value.

§Panics

If the given value is out of bounds for it_it.

Source

pub fn with_it_it_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of it_it set to the given value.

§Errors

If the given value is out of bounds for it_it.

Source

pub fn set_it_it(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of it_it to the given value.

§Panics

If the given value is out of bounds for it_it.

Source

pub fn set_it_it_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of it_it to the given value.

§Errors

If the given value is out of bounds for it_it.

Source

pub fn pt_pt(&self) -> <bool as Specifier>::InOut

Returns the value of pt_pt.

Source

pub fn pt_pt_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of pt_pt.

§Errors

If the returned value contains an invalid bit pattern for pt_pt.

Source

pub fn with_pt_pt(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of pt_pt set to the given value.

§Panics

If the given value is out of bounds for pt_pt.

Source

pub fn with_pt_pt_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of pt_pt set to the given value.

§Errors

If the given value is out of bounds for pt_pt.

Source

pub fn set_pt_pt(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of pt_pt to the given value.

§Panics

If the given value is out of bounds for pt_pt.

Source

pub fn set_pt_pt_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of pt_pt to the given value.

§Errors

If the given value is out of bounds for pt_pt.

Source§

impl LocaleFlags

Source

pub fn any_locale() -> Self

LocaleFlags which sets all locales to true.

Source

pub fn all(&self) -> bool

true if the flags indicate all locales.

Source

pub fn any(&self) -> bool

true if there is at least one locale flag set.

Trait Implementations§

Source§

impl BitAnd for LocaleFlags

Source§

type Output = LocaleFlags

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl CheckTotalSizeMultipleOf8 for LocaleFlags

Source§

type Size = TotalSize<[(); 0]>

Source§

impl Clone for LocaleFlags

Source§

fn clone(&self) -> LocaleFlags

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for LocaleFlags

Source§

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

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

impl From<LocaleFlags> for u32
where [(); 32]: IsU32Compatible,

Source§

fn from(__bf_bitfield: LocaleFlags) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for LocaleFlags
where [(); 32]: IsU32Compatible,

Source§

fn from(__bf_prim: u32) -> Self

Converts to this type from the input type.
Source§

impl Hash for LocaleFlags

Source§

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

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 Ord for LocaleFlags

Source§

fn cmp(&self, other: &LocaleFlags) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for LocaleFlags

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for LocaleFlags

Source§

fn partial_cmp(&self, other: &LocaleFlags) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for LocaleFlags

Source§

impl Eq for LocaleFlags

Source§

impl StructuralPartialEq for LocaleFlags

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<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<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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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, 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<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