pub struct CharacterWidth { /* private fields */ }Expand description
The wire type corresponding to CharacterWidth.
Implementations§
Source§impl CharacterWidth
impl CharacterWidth
pub const BITS_5: CharacterWidth
pub const BITS_6: CharacterWidth
pub const BITS_7: CharacterWidth
pub const BITS_8: CharacterWidth
Trait Implementations§
Source§impl Clone for CharacterWidth
impl Clone for CharacterWidth
Source§fn clone(&self) -> CharacterWidth
fn clone(&self) -> CharacterWidth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Constrained for CharacterWidth
impl Constrained for CharacterWidth
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, CharacterWidth>,
_: <CharacterWidth as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, CharacterWidth>, _: <CharacterWidth as Constrained>::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
impl Copy for CharacterWidth
Source§impl Debug for CharacterWidth
impl Debug for CharacterWidth
Source§impl<___D> Decode<___D> for CharacterWidthwhere
___D: ?Sized,
impl<___D> Decode<___D> for CharacterWidthwhere
___D: ?Sized,
Source§impl<___E> Encode<CharacterWidth, ___E> for CharacterWidthwhere
___E: ?Sized,
impl<___E> Encode<CharacterWidth, ___E> for CharacterWidthwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<CharacterWidth>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<CharacterWidth>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'a, ___E> Encode<CharacterWidth, ___E> for &'a CharacterWidthwhere
___E: ?Sized,
impl<'a, ___E> Encode<CharacterWidth, ___E> for &'a CharacterWidthwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<CharacterWidth>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<CharacterWidth>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
impl Eq for CharacterWidth
Source§impl From<CharacterWidth> for CharacterWidth
impl From<CharacterWidth> for CharacterWidth
Source§fn from(wire: CharacterWidth) -> CharacterWidth
fn from(wire: CharacterWidth) -> CharacterWidth
Converts to this type from the input type.
Source§impl From<CharacterWidth> for CharacterWidth
impl From<CharacterWidth> for CharacterWidth
Source§fn from(natural: CharacterWidth) -> CharacterWidth
fn from(natural: CharacterWidth) -> CharacterWidth
Converts to this type from the input type.
Source§impl FromWire<CharacterWidth> for CharacterWidth
impl FromWire<CharacterWidth> for CharacterWidth
Source§fn from_wire(wire: CharacterWidth) -> CharacterWidth
fn from_wire(wire: CharacterWidth) -> CharacterWidth
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<CharacterWidth> for CharacterWidth
impl FromWireRef<CharacterWidth> for CharacterWidth
Source§fn from_wire_ref(wire: &CharacterWidth) -> CharacterWidth
fn from_wire_ref(wire: &CharacterWidth) -> CharacterWidth
Converts the given reference to this type.
Source§impl IntoNatural for CharacterWidth
impl IntoNatural for CharacterWidth
Source§type Natural = CharacterWidth
type Natural = CharacterWidth
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl PartialEq for CharacterWidth
impl PartialEq for CharacterWidth
impl StructuralPartialEq for CharacterWidth
Source§impl Wire for CharacterWidth
impl Wire for CharacterWidth
Source§type Narrowed<'de> = CharacterWidth
type Narrowed<'de> = CharacterWidth
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(_: &mut MaybeUninit<CharacterWidth>)
fn zero_padding(_: &mut MaybeUninit<CharacterWidth>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl Freeze for CharacterWidth
impl RefUnwindSafe for CharacterWidth
impl Send for CharacterWidth
impl Sync for CharacterWidth
impl Unpin for CharacterWidth
impl UnsafeUnpin for CharacterWidth
impl UnwindSafe for CharacterWidth
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]