HeightMapBinReadArgBuilder

Struct HeightMapBinReadArgBuilder 

Source
pub struct HeightMapBinReadArgBuilder<Field_length, Field_width> { /* private fields */ }
Expand description

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

Implementations§

Source§

impl<Field_width> HeightMapBinReadArgBuilder<Needed, Field_width>

Source

pub fn length( self, val: u32, ) -> HeightMapBinReadArgBuilder<Satisfied, Field_width>

Sets length to the given value.

Source§

impl<Field_length> HeightMapBinReadArgBuilder<Field_length, Needed>

Source

pub fn width( self, val: u32, ) -> HeightMapBinReadArgBuilder<Field_length, Satisfied>

Sets width to the given value.

Source§

impl<Field_length: SatisfiedOrOptional, Field_width: SatisfiedOrOptional> HeightMapBinReadArgBuilder<Field_length, Field_width>

Source

pub fn finalize(self) -> HeightMapBinReadArgs

Builds the object.

Auto Trait Implementations§

§

impl<Field_length, Field_width> Freeze for HeightMapBinReadArgBuilder<Field_length, Field_width>

§

impl<Field_length, Field_width> RefUnwindSafe for HeightMapBinReadArgBuilder<Field_length, Field_width>
where Field_length: RefUnwindSafe, Field_width: RefUnwindSafe,

§

impl<Field_length, Field_width> Send for HeightMapBinReadArgBuilder<Field_length, Field_width>
where Field_length: Send, Field_width: Send,

§

impl<Field_length, Field_width> Sync for HeightMapBinReadArgBuilder<Field_length, Field_width>
where Field_length: Sync, Field_width: Sync,

§

impl<Field_length, Field_width> Unpin for HeightMapBinReadArgBuilder<Field_length, Field_width>
where Field_length: Unpin, Field_width: Unpin,

§

impl<Field_length, Field_width> UnwindSafe for HeightMapBinReadArgBuilder<Field_length, Field_width>
where Field_length: UnwindSafe, Field_width: UnwindSafe,

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

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.