pub struct ProgramLinkJsBuilder(/* private fields */);
Implementations§
Source§impl ProgramLinkJsBuilder
impl ProgramLinkJsBuilder
pub fn default() -> Self
pub fn new() -> Self
pub fn set_program_id(&mut self, program_id: String)
pub fn set_vertex_shader_id(&mut self, vertex_shader_id: String)
pub fn set_fragment_shader_id(&mut self, fragment_shader_id: String)
pub fn set_transform_feedback_varyings( &mut self, transform_feedback_varyings: StringArray, )
pub fn build(self) -> Result<ProgramLinkJs, String>
Methods from Deref<Target = ProgramLinkBuilderJsInner>§
pub fn set_program_id(&mut self, program_id: ProgramId) -> &mut Self
pub fn set_vertex_shader_id( &mut self, vertex_shader_id: VertexShaderId, ) -> &mut Self
pub fn set_fragment_shader_id( &mut self, fragment_shader_id: FragmentShaderId, ) -> &mut Self
pub fn set_transform_feedback_varyings( &mut self, transform_feedback_varyings: impl Into<Vec<String>>, ) -> &mut Self
Trait Implementations§
Source§impl Deref for ProgramLinkJsBuilder
impl Deref for ProgramLinkJsBuilder
Source§impl DerefMut for ProgramLinkJsBuilder
impl DerefMut for ProgramLinkJsBuilder
Source§fn deref_mut(&mut self) -> &mut ProgramLinkBuilderJsInner
fn deref_mut(&mut self) -> &mut ProgramLinkBuilderJsInner
Mutably dereferences the value.
Source§impl From<ProgramLinkBuilder<String, String, String>> for ProgramLinkJsBuilder
impl From<ProgramLinkBuilder<String, String, String>> for ProgramLinkJsBuilder
Source§impl From<ProgramLinkJsBuilder> for JsValue
impl From<ProgramLinkJsBuilder> for JsValue
Source§fn from(value: ProgramLinkJsBuilder) -> Self
fn from(value: ProgramLinkJsBuilder) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ProgramLinkJsBuilder
impl FromWasmAbi for ProgramLinkJsBuilder
Source§impl IntoWasmAbi for ProgramLinkJsBuilder
impl IntoWasmAbi for ProgramLinkJsBuilder
Source§impl RefFromWasmAbi for ProgramLinkJsBuilder
impl RefFromWasmAbi for ProgramLinkJsBuilder
Source§type Anchor = RcRef<ProgramLinkJsBuilder>
type Anchor = RcRef<ProgramLinkJsBuilder>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl VectorFromWasmAbi for ProgramLinkJsBuilder
impl VectorFromWasmAbi for ProgramLinkJsBuilder
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ProgramLinkJsBuilder]>
Source§impl VectorIntoWasmAbi for ProgramLinkJsBuilder
impl VectorIntoWasmAbi for ProgramLinkJsBuilder
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ProgramLinkJsBuilder]>) -> Self::Abi
Source§impl WasmDescribeVector for ProgramLinkJsBuilder
impl WasmDescribeVector for ProgramLinkJsBuilder
impl SupportsConstructor for ProgramLinkJsBuilder
impl SupportsInstanceProperty for ProgramLinkJsBuilder
impl SupportsStaticProperty for ProgramLinkJsBuilder
Auto Trait Implementations§
impl Freeze for ProgramLinkJsBuilder
impl RefUnwindSafe for ProgramLinkJsBuilder
impl Send for ProgramLinkJsBuilder
impl Sync for ProgramLinkJsBuilder
impl Unpin for ProgramLinkJsBuilder
impl UnwindSafe for ProgramLinkJsBuilder
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
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.