pub struct LocaleFlags { /* private fields */ }
Expand description
Bitmask of locales the content should be used for.
Implementations§
Source§impl LocaleFlags
impl LocaleFlags
Source§impl LocaleFlags
impl LocaleFlags
Sourcepub const fn into_bytes(self) -> [u8; 4]
pub const fn into_bytes(self) -> [u8; 4]
Sourcepub const fn from_bytes(bytes: [u8; 4]) -> Self
pub const fn from_bytes(bytes: [u8; 4]) -> Self
Converts the given bytes directly into the bitfield struct.
Source§impl LocaleFlags
impl LocaleFlags
Sourcepub fn en_us_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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
.
Sourcepub fn with_en_us(self, new_val: <bool as Specifier>::InOut) -> Self
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
.
Sourcepub fn with_en_us_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
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
.
Sourcepub fn set_en_us_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_en_us_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn ko_kr_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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
.
Sourcepub fn with_ko_kr(self, new_val: <bool as Specifier>::InOut) -> Self
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
.
Sourcepub fn with_ko_kr_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
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
.
Sourcepub fn set_ko_kr_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_ko_kr_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn fr_fr_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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
.
Sourcepub fn with_fr_fr(self, new_val: <bool as Specifier>::InOut) -> Self
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
.
Sourcepub fn with_fr_fr_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
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
.
Sourcepub fn set_fr_fr_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_fr_fr_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn de_de_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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
.
Sourcepub fn with_de_de(self, new_val: <bool as Specifier>::InOut) -> Self
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
.
Sourcepub fn with_de_de_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
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
.
Sourcepub fn set_de_de_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_de_de_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn zh_cn_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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
.
Sourcepub fn with_zh_cn(self, new_val: <bool as Specifier>::InOut) -> Self
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
.
Sourcepub fn with_zh_cn_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
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
.
Sourcepub fn set_zh_cn_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_zh_cn_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn es_es_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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
.
Sourcepub fn with_es_es(self, new_val: <bool as Specifier>::InOut) -> Self
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
.
Sourcepub fn with_es_es_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
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
.
Sourcepub fn set_es_es_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_es_es_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn zh_tw_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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
.
Sourcepub fn with_zh_tw(self, new_val: <bool as Specifier>::InOut) -> Self
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
.
Sourcepub fn with_zh_tw_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
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
.
Sourcepub fn set_zh_tw_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_zh_tw_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn en_gb_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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
.
Sourcepub fn with_en_gb(self, new_val: <bool as Specifier>::InOut) -> Self
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
.
Sourcepub fn with_en_gb_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
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
.
Sourcepub fn set_en_gb_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_en_gb_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn en_cn_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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
.
Sourcepub fn with_en_cn(self, new_val: <bool as Specifier>::InOut) -> Self
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
.
Sourcepub fn with_en_cn_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
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
.
Sourcepub fn set_en_cn_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_en_cn_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn en_tw_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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
.
Sourcepub fn with_en_tw(self, new_val: <bool as Specifier>::InOut) -> Self
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
.
Sourcepub fn with_en_tw_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
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
.
Sourcepub fn set_en_tw_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_en_tw_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn es_mx_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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
.
Sourcepub fn with_es_mx(self, new_val: <bool as Specifier>::InOut) -> Self
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
.
Sourcepub fn with_es_mx_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
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
.
Sourcepub fn set_es_mx_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_es_mx_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn ru_ru_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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
.
Sourcepub fn with_ru_ru(self, new_val: <bool as Specifier>::InOut) -> Self
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
.
Sourcepub fn with_ru_ru_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
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
.
Sourcepub fn set_ru_ru_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_ru_ru_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn pt_br_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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
.
Sourcepub fn with_pt_br(self, new_val: <bool as Specifier>::InOut) -> Self
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
.
Sourcepub fn with_pt_br_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
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
.
Sourcepub fn set_pt_br_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_pt_br_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn it_it_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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
.
Sourcepub fn with_it_it(self, new_val: <bool as Specifier>::InOut) -> Self
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
.
Sourcepub fn with_it_it_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
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
.
Sourcepub fn set_it_it_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_it_it_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn pt_pt_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
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
.
Sourcepub fn with_pt_pt(self, new_val: <bool as Specifier>::InOut) -> Self
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
.
Sourcepub fn with_pt_pt_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
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
.
Sourcepub fn set_pt_pt_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_pt_pt_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Trait Implementations§
Source§impl BitAnd for LocaleFlags
impl BitAnd for LocaleFlags
Source§impl Clone for LocaleFlags
impl Clone for LocaleFlags
Source§fn clone(&self) -> LocaleFlags
fn clone(&self) -> LocaleFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more