#[repr(transparent)]struct SelectorError(u32);
Tuple Fields§
§0: u32
Implementations§
source§impl SelectorError
impl SelectorError
const EXTERNAL_BITS: usize = 1usize
const EXTERNAL_OFFSET: usize = 0usize
const TABLE_BITS: usize = 2usize
const TABLE_OFFSET: usize = 1usize
const INDEX_BITS: usize = 13usize
const INDEX_OFFSET: usize = 3usize
sourceconst fn with_external_checked(self, value: bool) -> Result<Self, ()>
const fn with_external_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
sourceconst fn with_external(self, value: bool) -> Self
const fn with_external(self, value: bool) -> Self
Bits: 0..1
sourcefn set_external(&mut self, value: bool)
fn set_external(&mut self, value: bool)
Bits: 0..1
sourcefn set_external_checked(&mut self, value: bool) -> Result<(), ()>
fn set_external_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 0..1
sourceconst fn with_table_checked(self, value: u8) -> Result<Self, ()>
const fn with_table_checked(self, value: u8) -> Result<Self, ()>
Bits: 1..3
sourceconst fn with_table(self, value: u8) -> Self
const fn with_table(self, value: u8) -> Self
Bits: 1..3
sourcefn set_table_checked(&mut self, value: u8) -> Result<(), ()>
fn set_table_checked(&mut self, value: u8) -> Result<(), ()>
Bits: 1..3
sourceconst fn with_index_checked(self, value: usize) -> Result<Self, ()>
const fn with_index_checked(self, value: usize) -> Result<Self, ()>
Bits: 3..16
sourceconst fn with_index(self, value: usize) -> Self
const fn with_index(self, value: usize) -> Self
Bits: 3..16
sourcefn set_index_checked(&mut self, value: usize) -> Result<(), ()>
fn set_index_checked(&mut self, value: usize) -> Result<(), ()>
Bits: 3..16
Trait Implementations§
source§impl Clone for SelectorError
impl Clone for SelectorError
source§fn clone(&self) -> SelectorError
fn clone(&self) -> SelectorError
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SelectorError
impl Debug for SelectorError
source§impl Default for SelectorError
impl Default for SelectorError
source§impl From<SelectorError> for u32
impl From<SelectorError> for u32
source§fn from(v: SelectorError) -> u32
fn from(v: SelectorError) -> u32
Converts to this type from the input type.
source§impl From<u32> for SelectorError
impl From<u32> for SelectorError
impl Copy for SelectorError
Auto Trait Implementations§
impl Freeze for SelectorError
impl RefUnwindSafe for SelectorError
impl Send for SelectorError
impl Sync for SelectorError
impl Unpin for SelectorError
impl UnwindSafe for SelectorError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
§impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.