pub enum FrontFaceDirection {
CW = 2_304,
CCW = 2_305,
}
Expand description
Constants passed to WebGLRenderingContext.frontFace().
Variants§
CW = 2_304
Passed to frontFace to specify the front face of a polygon is drawn in the clockwise direction
CCW = 2_305
Passed to frontFace to specify the front face of a polygon is drawn in the counter clockwise direction
Trait Implementations§
Source§impl Clone for FrontFaceDirection
impl Clone for FrontFaceDirection
Source§fn clone(&self) -> FrontFaceDirection
fn clone(&self) -> FrontFaceDirection
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 FrontFaceDirection
impl Debug for FrontFaceDirection
Source§impl From<FrontFaceDirection> for JsValue
impl From<FrontFaceDirection> for JsValue
Source§fn from(value: FrontFaceDirection) -> Self
fn from(value: FrontFaceDirection) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for FrontFaceDirection
impl FromWasmAbi for FrontFaceDirection
Source§impl IntoWasmAbi for FrontFaceDirection
impl IntoWasmAbi for FrontFaceDirection
Source§impl TryFromJsValue for FrontFaceDirection
impl TryFromJsValue for FrontFaceDirection
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <FrontFaceDirection as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <FrontFaceDirection as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for FrontFaceDirection
impl VectorFromWasmAbi for FrontFaceDirection
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[FrontFaceDirection]>
Source§impl VectorIntoJsValue for FrontFaceDirection
impl VectorIntoJsValue for FrontFaceDirection
fn vector_into_jsvalue(vector: Box<[FrontFaceDirection]>) -> JsValue
Source§impl VectorIntoWasmAbi for FrontFaceDirection
impl VectorIntoWasmAbi for FrontFaceDirection
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[FrontFaceDirection]>) -> Self::Abi
Source§impl WasmDescribeVector for FrontFaceDirection
impl WasmDescribeVector for FrontFaceDirection
impl Copy for FrontFaceDirection
Auto Trait Implementations§
impl Freeze for FrontFaceDirection
impl RefUnwindSafe for FrontFaceDirection
impl Send for FrontFaceDirection
impl Sync for FrontFaceDirection
impl Unpin for FrontFaceDirection
impl UnwindSafe for FrontFaceDirection
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
.