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>
impl<Field_strings_offset> ShaderBinReadArgBuilder<Needed, Field_strings_offset>
sourcepub fn shader_data_offset(
self,
val: u32,
) -> ShaderBinReadArgBuilder<Satisfied, Field_strings_offset>
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>
impl<Field_shader_data_offset> ShaderBinReadArgBuilder<Field_shader_data_offset, Needed>
sourcepub fn strings_offset(
self,
val: u32,
) -> ShaderBinReadArgBuilder<Field_shader_data_offset, Satisfied>
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>
impl<Field_shader_data_offset: SatisfiedOrOptional, Field_strings_offset: SatisfiedOrOptional> ShaderBinReadArgBuilder<Field_shader_data_offset, Field_strings_offset>
sourcepub fn finalize(self) -> ShaderBinReadArgs
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>
impl<Field_shader_data_offset, Field_strings_offset> Sync for ShaderBinReadArgBuilder<Field_shader_data_offset, Field_strings_offset>
impl<Field_shader_data_offset, Field_strings_offset> Unpin for ShaderBinReadArgBuilder<Field_shader_data_offset, Field_strings_offset>
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> 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