pub struct CoordBuffer(/* private fields */);
Implementations§
Source§impl CoordBuffer
impl CoordBuffer
pub fn from_interleaved_coords(coords: InterleavedCoordBuffer) -> Self
pub fn from_separated_coords(coords: SeparatedCoordBuffer) -> Self
Trait Implementations§
Source§impl From<CoordBuffer> for JsValue
impl From<CoordBuffer> for JsValue
Source§fn from(value: CoordBuffer) -> Self
fn from(value: CoordBuffer) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for CoordBuffer
impl FromWasmAbi for CoordBuffer
Source§impl IntoWasmAbi for CoordBuffer
impl IntoWasmAbi for CoordBuffer
Source§impl LongRefFromWasmAbi for CoordBuffer
impl LongRefFromWasmAbi for CoordBuffer
Source§impl OptionFromWasmAbi for CoordBuffer
impl OptionFromWasmAbi for CoordBuffer
Source§impl OptionIntoWasmAbi for CoordBuffer
impl OptionIntoWasmAbi for CoordBuffer
Source§impl RefFromWasmAbi for CoordBuffer
impl RefFromWasmAbi for CoordBuffer
Source§type Anchor = RcRef<CoordBuffer>
type Anchor = RcRef<CoordBuffer>
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 RefMutFromWasmAbi for CoordBuffer
impl RefMutFromWasmAbi for CoordBuffer
Source§impl TryFromJsValue for CoordBuffer
impl TryFromJsValue for CoordBuffer
Source§impl VectorFromWasmAbi for CoordBuffer
impl VectorFromWasmAbi for CoordBuffer
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[CoordBuffer]>
Source§impl VectorIntoJsValue for CoordBuffer
impl VectorIntoJsValue for CoordBuffer
fn vector_into_jsvalue(vector: Box<[CoordBuffer]>) -> JsValue
Source§impl VectorIntoWasmAbi for CoordBuffer
impl VectorIntoWasmAbi for CoordBuffer
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[CoordBuffer]>) -> Self::Abi
Source§impl WasmDescribeVector for CoordBuffer
impl WasmDescribeVector for CoordBuffer
impl SupportsConstructor for CoordBuffer
impl SupportsInstanceProperty for CoordBuffer
impl SupportsStaticProperty for CoordBuffer
Auto Trait Implementations§
impl Freeze for CoordBuffer
impl RefUnwindSafe for CoordBuffer
impl Send for CoordBuffer
impl Sync for CoordBuffer
impl Unpin for CoordBuffer
impl UnwindSafe for CoordBuffer
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§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
.