pub enum Texture2DKind {
Texture2d = 3_553,
TextureCubeMap = 34_067,
}
Expand description
WebGLRenderingContext.texStorage2D() target
parameter
Variants§
Trait Implementations§
Source§impl Clone for Texture2DKind
impl Clone for Texture2DKind
Source§fn clone(&self) -> Texture2DKind
fn clone(&self) -> Texture2DKind
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 Texture2DKind
impl Debug for Texture2DKind
Source§impl From<Texture2DKind> for JsValue
impl From<Texture2DKind> for JsValue
Source§fn from(value: Texture2DKind) -> Self
fn from(value: Texture2DKind) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for Texture2DKind
impl FromWasmAbi for Texture2DKind
Source§impl IntoWasmAbi for Texture2DKind
impl IntoWasmAbi for Texture2DKind
Source§impl OptionFromWasmAbi for Texture2DKind
impl OptionFromWasmAbi for Texture2DKind
Source§impl OptionIntoWasmAbi for Texture2DKind
impl OptionIntoWasmAbi for Texture2DKind
Source§impl TryFromJsValue for Texture2DKind
impl TryFromJsValue for Texture2DKind
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <Texture2DKind as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <Texture2DKind as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for Texture2DKind
impl VectorFromWasmAbi for Texture2DKind
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Texture2DKind]>
Source§impl VectorIntoJsValue for Texture2DKind
impl VectorIntoJsValue for Texture2DKind
fn vector_into_jsvalue(vector: Box<[Texture2DKind]>) -> JsValue
Source§impl VectorIntoWasmAbi for Texture2DKind
impl VectorIntoWasmAbi for Texture2DKind
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Texture2DKind]>) -> Self::Abi
Source§impl WasmDescribeVector for Texture2DKind
impl WasmDescribeVector for Texture2DKind
impl Copy for Texture2DKind
Auto Trait Implementations§
impl Freeze for Texture2DKind
impl RefUnwindSafe for Texture2DKind
impl Send for Texture2DKind
impl Sync for Texture2DKind
impl Unpin for Texture2DKind
impl UnwindSafe for Texture2DKind
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
.