pub struct AttributeLocation(/* private fields */);Expand description
Wrapper around the raw number returned from WebGL to represent an attribute location
Implementations§
Trait Implementations§
Source§impl Clone for AttributeLocation
impl Clone for AttributeLocation
Source§fn clone(&self) -> AttributeLocation
fn clone(&self) -> AttributeLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttributeLocation
impl Debug for AttributeLocation
Source§impl From<&AttributeLocation> for u32
impl From<&AttributeLocation> for u32
Source§fn from(attribute_location: &AttributeLocation) -> Self
fn from(attribute_location: &AttributeLocation) -> Self
Converts to this type from the input type.
Source§impl From<&u32> for AttributeLocation
impl From<&u32> for AttributeLocation
Source§impl From<AttributeLocation> for JsValue
impl From<AttributeLocation> for JsValue
Source§fn from(value: AttributeLocation) -> Self
fn from(value: AttributeLocation) -> Self
Converts to this type from the input type.
Source§impl From<AttributeLocation> for i32
impl From<AttributeLocation> for i32
Source§fn from(attribute_location: AttributeLocation) -> Self
fn from(attribute_location: AttributeLocation) -> Self
Converts to this type from the input type.
Source§impl From<AttributeLocation> for u32
impl From<AttributeLocation> for u32
Source§fn from(attribute_location: AttributeLocation) -> Self
fn from(attribute_location: AttributeLocation) -> Self
Converts to this type from the input type.
Source§impl From<i32> for AttributeLocation
impl From<i32> for AttributeLocation
Source§impl From<u32> for AttributeLocation
impl From<u32> for AttributeLocation
Source§impl FromWasmAbi for AttributeLocation
impl FromWasmAbi for AttributeLocation
Source§impl Hash for AttributeLocation
impl Hash for AttributeLocation
Source§impl IntoWasmAbi for AttributeLocation
impl IntoWasmAbi for AttributeLocation
Source§impl Ord for AttributeLocation
impl Ord for AttributeLocation
Source§fn cmp(&self, other: &AttributeLocation) -> Ordering
fn cmp(&self, other: &AttributeLocation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AttributeLocation
impl PartialEq for AttributeLocation
Source§impl PartialOrd for AttributeLocation
impl PartialOrd for AttributeLocation
Source§impl RefFromWasmAbi for AttributeLocation
impl RefFromWasmAbi for AttributeLocation
Source§type Anchor = RcRef<AttributeLocation>
type Anchor = RcRef<AttributeLocation>
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 TryFromJsValue for AttributeLocation
impl TryFromJsValue for AttributeLocation
Source§impl VectorFromWasmAbi for AttributeLocation
impl VectorFromWasmAbi for AttributeLocation
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[AttributeLocation]>
Source§impl VectorIntoWasmAbi for AttributeLocation
impl VectorIntoWasmAbi for AttributeLocation
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[AttributeLocation]>) -> Self::Abi
Source§impl WasmDescribeVector for AttributeLocation
impl WasmDescribeVector for AttributeLocation
impl Copy for AttributeLocation
impl Eq for AttributeLocation
impl StructuralPartialEq for AttributeLocation
impl SupportsConstructor for AttributeLocation
impl SupportsInstanceProperty for AttributeLocation
impl SupportsStaticProperty for AttributeLocation
Auto Trait Implementations§
impl Freeze for AttributeLocation
impl RefUnwindSafe for AttributeLocation
impl Send for AttributeLocation
impl Sync for AttributeLocation
impl Unpin for AttributeLocation
impl UnwindSafe for AttributeLocation
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::AbiSource§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.