pub struct CpuPowerElement { /* private fields */ }Expand description
The wire type corresponding to CpuPowerElement.
Implementations§
Source§impl CpuPowerElement
impl CpuPowerElement
pub const CPU: CpuPowerElement
Trait Implementations§
Source§impl Clone for CpuPowerElement
impl Clone for CpuPowerElement
Source§fn clone(&self) -> CpuPowerElement
fn clone(&self) -> CpuPowerElement
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 CpuPowerElement
impl Constrained for CpuPowerElement
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, CpuPowerElement>,
_: <CpuPowerElement as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, CpuPowerElement>, _: <CpuPowerElement as Constrained>::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Source§impl Debug for CpuPowerElement
impl Debug for CpuPowerElement
Source§impl<___D> Decode<___D> for CpuPowerElementwhere
___D: ?Sized,
impl<___D> Decode<___D> for CpuPowerElementwhere
___D: ?Sized,
Source§impl<'a, ___E> Encode<CpuPowerElement, ___E> for &'a CpuPowerElementwhere
___E: ?Sized,
impl<'a, ___E> Encode<CpuPowerElement, ___E> for &'a CpuPowerElementwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<CpuPowerElement>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<CpuPowerElement>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> Encode<CpuPowerElement, ___E> for CpuPowerElementwhere
___E: ?Sized,
impl<___E> Encode<CpuPowerElement, ___E> for CpuPowerElementwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<CpuPowerElement>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<CpuPowerElement>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl From<CpuPowerElement> for CpuPowerElement
impl From<CpuPowerElement> for CpuPowerElement
Source§fn from(wire: CpuPowerElement) -> CpuPowerElement
fn from(wire: CpuPowerElement) -> CpuPowerElement
Converts to this type from the input type.
Source§impl From<CpuPowerElement> for CpuPowerElement
impl From<CpuPowerElement> for CpuPowerElement
Source§fn from(natural: CpuPowerElement) -> CpuPowerElement
fn from(natural: CpuPowerElement) -> CpuPowerElement
Converts to this type from the input type.
Source§impl FromWire<CpuPowerElement> for CpuPowerElement
impl FromWire<CpuPowerElement> for CpuPowerElement
Source§fn from_wire(wire: CpuPowerElement) -> CpuPowerElement
fn from_wire(wire: CpuPowerElement) -> CpuPowerElement
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<CpuPowerElement> for CpuPowerElement
impl FromWireRef<CpuPowerElement> for CpuPowerElement
Source§fn from_wire_ref(wire: &CpuPowerElement) -> CpuPowerElement
fn from_wire_ref(wire: &CpuPowerElement) -> CpuPowerElement
Converts the given reference to this type.
Source§impl IntoNatural for CpuPowerElement
impl IntoNatural for CpuPowerElement
Source§type Natural = CpuPowerElement
type Natural = CpuPowerElement
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 CpuPowerElement
impl PartialEq for CpuPowerElement
Source§fn eq(&self, other: &CpuPowerElement) -> bool
fn eq(&self, other: &CpuPowerElement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Wire for CpuPowerElement
impl Wire for CpuPowerElement
Source§type Narrowed<'de> = CpuPowerElement
type Narrowed<'de> = CpuPowerElement
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(_: &mut MaybeUninit<CpuPowerElement>)
fn zero_padding(_: &mut MaybeUninit<CpuPowerElement>)
Writes zeroes to the padding for this type, if any.
impl Copy for CpuPowerElement
impl Eq for CpuPowerElement
impl StructuralPartialEq for CpuPowerElement
Auto Trait Implementations§
impl Freeze for CpuPowerElement
impl RefUnwindSafe for CpuPowerElement
impl Send for CpuPowerElement
impl Sync for CpuPowerElement
impl Unpin for CpuPowerElement
impl UnsafeUnpin for CpuPowerElement
impl UnwindSafe for CpuPowerElement
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]