pub struct Builder<'a, T>
where T: Owned,
{ /* private fields */ }

Implementations§

source§

impl<'a, T> Builder<'a, T>
where T: Owned,

source

pub fn into_reader(self) -> Reader<'a, T>

source

pub fn reborrow(&mut self) -> Builder<'_, T>

source

pub fn reborrow_as_reader(&self) -> Reader<'_, T>

source

pub fn total_size(&self) -> Result<MessageSize>

source

pub fn get_value(self) -> Result<<T as Owned>::Builder<'a>>

source

pub fn initn_value(self, length: u32) -> <T as Owned>::Builder<'a>

source

pub fn set_value(&mut self, value: impl SetterInput<T>) -> Result<()>

source

pub fn init_value(self) -> <T as Owned>::Builder<'a>

source

pub fn has_value(&self) -> bool

Trait Implementations§

source§

impl<'a, T> From<Builder<'a, T>> for Builder<'a>
where T: Owned,

source§

fn from(builder: Builder<'a, T>) -> Self

Converts to this type from the input type.
source§

impl<'a, T> From<StructBuilder<'a>> for Builder<'a, T>
where T: Owned,

source§

fn from(builder: StructBuilder<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a, T> FromPointerBuilder<'a> for Builder<'a, T>
where T: Owned,

source§

fn init_pointer(builder: PointerBuilder<'a>, _size: u32) -> Self

source§

fn get_from_pointer( builder: PointerBuilder<'a>, default: Option<&'a [Word]> ) -> Result<Self>

source§

impl<'a, T> HasStructSize for Builder<'a, T>
where T: Owned,

source§

impl<'a, T> HasTypeId for Builder<'a, T>
where T: Owned,

source§

const TYPE_ID: u64 = 10_948_019_393_607_644_306u64

source§

impl<'a, T> ImbueMut<'a> for Builder<'a, T>
where T: Owned,

source§

fn imbue_mut(&mut self, cap_table: &'a mut CapTable)

Auto Trait Implementations§

§

impl<'a, T> !RefUnwindSafe for Builder<'a, T>

§

impl<'a, T> !Send for Builder<'a, T>

§

impl<'a, T> !Sync for Builder<'a, T>

§

impl<'a, T> Unpin for Builder<'a, T>
where T: Unpin,

§

impl<'a, T> !UnwindSafe for Builder<'a, T>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.