Struct physis::shpk::ShaderBinReadArgBuilder

source ·
pub struct ShaderBinReadArgBuilder<Field_shader_data_offset, Field_strings_offset> { /* private fields */ }
Expand description

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

Implementations§

source§

impl<Field_strings_offset> ShaderBinReadArgBuilder<Needed, Field_strings_offset>

source

pub fn shader_data_offset( self, val: u32, ) -> ShaderBinReadArgBuilder<Satisfied, Field_strings_offset>

Sets shader_data_offset to the given value.

source§

impl<Field_shader_data_offset> ShaderBinReadArgBuilder<Field_shader_data_offset, Needed>

source

pub fn strings_offset( self, val: u32, ) -> ShaderBinReadArgBuilder<Field_shader_data_offset, Satisfied>

Sets strings_offset to the given value.

source§

impl<Field_shader_data_offset: SatisfiedOrOptional, Field_strings_offset: SatisfiedOrOptional> ShaderBinReadArgBuilder<Field_shader_data_offset, Field_strings_offset>

source

pub fn finalize(self) -> ShaderBinReadArgs

Builds the object.

Auto Trait Implementations§

§

impl<Field_shader_data_offset, Field_strings_offset> Freeze for ShaderBinReadArgBuilder<Field_shader_data_offset, Field_strings_offset>

§

impl<Field_shader_data_offset, Field_strings_offset> RefUnwindSafe for ShaderBinReadArgBuilder<Field_shader_data_offset, Field_strings_offset>
where Field_shader_data_offset: RefUnwindSafe, Field_strings_offset: RefUnwindSafe,

§

impl<Field_shader_data_offset, Field_strings_offset> Send for ShaderBinReadArgBuilder<Field_shader_data_offset, Field_strings_offset>
where Field_shader_data_offset: Send, Field_strings_offset: Send,

§

impl<Field_shader_data_offset, Field_strings_offset> Sync for ShaderBinReadArgBuilder<Field_shader_data_offset, Field_strings_offset>
where Field_shader_data_offset: Sync, Field_strings_offset: Sync,

§

impl<Field_shader_data_offset, Field_strings_offset> Unpin for ShaderBinReadArgBuilder<Field_shader_data_offset, Field_strings_offset>
where Field_shader_data_offset: Unpin, Field_strings_offset: Unpin,

§

impl<Field_shader_data_offset, Field_strings_offset> UnwindSafe for ShaderBinReadArgBuilder<Field_shader_data_offset, Field_strings_offset>
where Field_shader_data_offset: UnwindSafe, Field_strings_offset: 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more