pub struct Table<'de> { /* private fields */ }Expand description
A FIDL table
Implementations§
Source§impl<'de> Table<'de>
impl<'de> Table<'de>
Sourcepub fn encode_len(out: &mut MaybeUninit<Table<'de>>, len: usize)
pub fn encode_len(out: &mut MaybeUninit<Table<'de>>, len: usize)
Encodes that a table contains len values in a slot.
Sourcepub fn decode_with<D>(
slot: Slot<'_, Table<'de>>,
decoder: &mut D,
f: impl Fn(i64, Slot<'_, Envelope>, &mut D) -> Result<(), DecodeError>,
) -> Result<(), DecodeError>
pub fn decode_with<D>( slot: Slot<'_, Table<'de>>, decoder: &mut D, f: impl Fn(i64, Slot<'_, Envelope>, &mut D) -> Result<(), DecodeError>, ) -> Result<(), DecodeError>
Decodes the fields of the table with a decoding function.
The decoding function receives the ordinal of the field, its slot, and the decoder.
Trait Implementations§
Source§impl Constrained for Table<'_>
impl Constrained for Table<'_>
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, Table<'_>>,
_: <Table<'_> as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, Table<'_>>, _: <Table<'_> as Constrained>::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Auto Trait Implementations§
impl<'de> Freeze for Table<'de>
impl<'de> RefUnwindSafe for Table<'de>
impl<'de> Send for Table<'de>
impl<'de> Sync for Table<'de>
impl<'de> Unpin for Table<'de>
impl<'de> UnsafeUnpin for Table<'de>
impl<'de> !UnwindSafe for Table<'de>
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
Source§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