RecordBinReadArgBuilder

Struct RecordBinReadArgBuilder 

Source
pub struct RecordBinReadArgBuilder<'__binrw_generated_args_lifetime, Field_version, Field_keychain, Field_product_type> { /* private fields */ }
Expand description

A builder for RecordBinReadArgs objects. Compatible with binrw::args!.

Implementations§

Source§

impl<'__binrw_generated_args_lifetime, Field_keychain, Field_product_type> RecordBinReadArgBuilder<'__binrw_generated_args_lifetime, Needed, Field_keychain, Field_product_type>

Source

pub fn version( self, val: u8, ) -> RecordBinReadArgBuilder<'__binrw_generated_args_lifetime, Satisfied, Field_keychain, Field_product_type>

Sets version to the given value.

Source§

impl<'__binrw_generated_args_lifetime, Field_version, Field_product_type> RecordBinReadArgBuilder<'__binrw_generated_args_lifetime, Field_version, Needed, Field_product_type>

Source

pub fn keychain( self, val: &'__binrw_generated_args_lifetime RefCell<Keychain>, ) -> RecordBinReadArgBuilder<'__binrw_generated_args_lifetime, Field_version, Satisfied, Field_product_type>

Sets keychain to the given value.

Source§

impl<'__binrw_generated_args_lifetime, Field_version, Field_keychain> RecordBinReadArgBuilder<'__binrw_generated_args_lifetime, Field_version, Field_keychain, Optional>

Source

pub fn product_type( self, val: ProductType, ) -> RecordBinReadArgBuilder<'__binrw_generated_args_lifetime, Field_version, Field_keychain, Satisfied>

Sets product_type to the given value.

Source§

impl<'__binrw_generated_args_lifetime, Field_version: SatisfiedOrOptional, Field_keychain: SatisfiedOrOptional, Field_product_type: SatisfiedOrOptional> RecordBinReadArgBuilder<'__binrw_generated_args_lifetime, Field_version, Field_keychain, Field_product_type>

Source

pub fn finalize(self) -> RecordBinReadArgs<'__binrw_generated_args_lifetime>

Builds the object.

Auto Trait Implementations§

§

impl<'__binrw_generated_args_lifetime, Field_version, Field_keychain, Field_product_type> Freeze for RecordBinReadArgBuilder<'__binrw_generated_args_lifetime, Field_version, Field_keychain, Field_product_type>

§

impl<'__binrw_generated_args_lifetime, Field_version, Field_keychain, Field_product_type> !RefUnwindSafe for RecordBinReadArgBuilder<'__binrw_generated_args_lifetime, Field_version, Field_keychain, Field_product_type>

§

impl<'__binrw_generated_args_lifetime, Field_version, Field_keychain, Field_product_type> !Send for RecordBinReadArgBuilder<'__binrw_generated_args_lifetime, Field_version, Field_keychain, Field_product_type>

§

impl<'__binrw_generated_args_lifetime, Field_version, Field_keychain, Field_product_type> !Sync for RecordBinReadArgBuilder<'__binrw_generated_args_lifetime, Field_version, Field_keychain, Field_product_type>

§

impl<'__binrw_generated_args_lifetime, Field_version, Field_keychain, Field_product_type> Unpin for RecordBinReadArgBuilder<'__binrw_generated_args_lifetime, Field_version, Field_keychain, Field_product_type>
where Field_version: Unpin, Field_keychain: Unpin, Field_product_type: Unpin,

§

impl<'__binrw_generated_args_lifetime, Field_version, Field_keychain, Field_product_type> !UnwindSafe for RecordBinReadArgBuilder<'__binrw_generated_args_lifetime, Field_version, Field_keychain, Field_product_type>

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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

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.
Source§

impl<T> ErasedDestructor for T
where T: 'static,