Struct GoldenIntStruct
#[repr(C)]pub struct GoldenIntStruct {
pub v: i16,
}
Fields§
§v: i16
Trait Implementations§
§impl Clone for GoldenIntStruct
impl Clone for GoldenIntStruct
§fn clone(&self) -> GoldenIntStruct
fn clone(&self) -> GoldenIntStruct
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for GoldenIntStruct
impl Debug for GoldenIntStruct
§impl<D> Decode<GoldenIntStruct, D> for GoldenIntStructwhere
D: ResourceDialect,
impl<D> Decode<GoldenIntStruct, D> for GoldenIntStructwhere
D: ResourceDialect,
§fn new_empty() -> GoldenIntStruct
fn new_empty() -> GoldenIntStruct
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<GoldenIntStruct, D> for &GoldenIntStructwhere
D: ResourceDialect,
impl<D> Encode<GoldenIntStruct, D> for &GoldenIntStructwhere
D: ResourceDialect,
§impl Hash for GoldenIntStruct
impl Hash for GoldenIntStruct
§impl Ord for GoldenIntStruct
impl Ord for GoldenIntStruct
§impl PartialEq for GoldenIntStruct
impl PartialEq for GoldenIntStruct
§impl PartialOrd for GoldenIntStruct
impl PartialOrd for GoldenIntStruct
§impl TypeMarker for GoldenIntStruct
impl TypeMarker for GoldenIntStruct
§type Owned = GoldenIntStruct
type Owned = GoldenIntStruct
The owned Rust type which this FIDL type decodes into.
§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.
§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
.§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 more§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.§impl ValueTypeMarker for GoldenIntStruct
impl ValueTypeMarker for GoldenIntStruct
§type Borrowed<'a> = &'a GoldenIntStruct
type Borrowed<'a> = &'a GoldenIntStruct
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<GoldenIntStruct as TypeMarker>::Owned,
) -> <GoldenIntStruct as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<GoldenIntStruct as TypeMarker>::Owned, ) -> <GoldenIntStruct as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for GoldenIntStruct
impl Eq for GoldenIntStruct
impl Persistable for GoldenIntStruct
impl StructuralPartialEq for GoldenIntStruct
Auto Trait Implementations§
impl Freeze for GoldenIntStruct
impl RefUnwindSafe for GoldenIntStruct
impl Send for GoldenIntStruct
impl Sync for GoldenIntStruct
impl Unpin for GoldenIntStruct
impl UnwindSafe for GoldenIntStruct
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