#[repr(C)]pub struct OperatingPointEntry {
pub freq_hz: u32,
pub volt_uv: u32,
}Expand description
scpi_opp_entry_t is typedef’d to this.
Fields§
§freq_hz: u32The operating point frequency in Hz.
volt_uv: u32The operating point voltage in microvolts.
Trait Implementations§
Source§impl Clone for OperatingPointEntry
impl Clone for OperatingPointEntry
Source§fn clone(&self) -> OperatingPointEntry
fn clone(&self) -> OperatingPointEntry
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 moreimpl Copy for OperatingPointEntry
Source§impl Debug for OperatingPointEntry
impl Debug for OperatingPointEntry
Source§impl<D: ResourceDialect> Decode<OperatingPointEntry, D> for OperatingPointEntry
impl<D: ResourceDialect> Decode<OperatingPointEntry, D> for OperatingPointEntry
Source§impl<D: ResourceDialect> Encode<OperatingPointEntry, D> for &OperatingPointEntry
impl<D: ResourceDialect> Encode<OperatingPointEntry, D> for &OperatingPointEntry
Source§impl<D: ResourceDialect, T0: Encode<u32, D>, T1: Encode<u32, D>> Encode<OperatingPointEntry, D> for (T0, T1)
impl<D: ResourceDialect, T0: Encode<u32, D>, T1: Encode<u32, D>> Encode<OperatingPointEntry, D> for (T0, T1)
impl Eq for OperatingPointEntry
Source§impl Hash for OperatingPointEntry
impl Hash for OperatingPointEntry
Source§impl Ord for OperatingPointEntry
impl Ord for OperatingPointEntry
Source§fn cmp(&self, other: &OperatingPointEntry) -> Ordering
fn cmp(&self, other: &OperatingPointEntry) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OperatingPointEntry
impl PartialEq for OperatingPointEntry
Source§fn eq(&self, other: &OperatingPointEntry) -> bool
fn eq(&self, other: &OperatingPointEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OperatingPointEntry
impl PartialOrd for OperatingPointEntry
impl Persistable for OperatingPointEntry
impl StructuralPartialEq for OperatingPointEntry
Source§impl TypeMarker for OperatingPointEntry
impl TypeMarker for OperatingPointEntry
Source§type Owned = OperatingPointEntry
type Owned = OperatingPointEntry
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for OperatingPointEntry
impl ValueTypeMarker for OperatingPointEntry
Source§type Borrowed<'a> = &'a OperatingPointEntry
type Borrowed<'a> = &'a OperatingPointEntry
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreAuto Trait Implementations§
impl Freeze for OperatingPointEntry
impl RefUnwindSafe for OperatingPointEntry
impl Send for OperatingPointEntry
impl Sync for OperatingPointEntry
impl Unpin for OperatingPointEntry
impl UnsafeUnpin for OperatingPointEntry
impl UnwindSafe for OperatingPointEntry
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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