pub enum AttributeSize {
One = 1,
Two = 2,
Three = 3,
Four = 4,
}
Expand description
Constants passed to WebGLRenderingContext.vertexAttribPointer()
Variants§
Trait Implementations§
Source§impl Clone for AttributeSize
impl Clone for AttributeSize
Source§fn clone(&self) -> AttributeSize
fn clone(&self) -> AttributeSize
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AttributeSize
impl Debug for AttributeSize
Source§impl From<AttributeSize> for JsValue
impl From<AttributeSize> for JsValue
Source§fn from(value: AttributeSize) -> Self
fn from(value: AttributeSize) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for AttributeSize
impl FromWasmAbi for AttributeSize
Source§impl IntoWasmAbi for AttributeSize
impl IntoWasmAbi for AttributeSize
Source§impl OptionFromWasmAbi for AttributeSize
impl OptionFromWasmAbi for AttributeSize
Source§impl OptionIntoWasmAbi for AttributeSize
impl OptionIntoWasmAbi for AttributeSize
Source§impl TryFromJsValue for AttributeSize
impl TryFromJsValue for AttributeSize
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <AttributeSize as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <AttributeSize as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for AttributeSize
impl VectorFromWasmAbi for AttributeSize
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[AttributeSize]>
Source§impl VectorIntoJsValue for AttributeSize
impl VectorIntoJsValue for AttributeSize
fn vector_into_jsvalue(vector: Box<[AttributeSize]>) -> JsValue
Source§impl VectorIntoWasmAbi for AttributeSize
impl VectorIntoWasmAbi for AttributeSize
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[AttributeSize]>) -> Self::Abi
Source§impl WasmDescribeVector for AttributeSize
impl WasmDescribeVector for AttributeSize
impl Copy for AttributeSize
Auto Trait Implementations§
impl Freeze for AttributeSize
impl RefUnwindSafe for AttributeSize
impl Send for AttributeSize
impl Sync for AttributeSize
impl Unpin for AttributeSize
impl UnwindSafe for AttributeSize
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
.