pub enum GeometryType {
Point = 0,
LineString = 1,
Polygon = 3,
MultiPoint = 4,
MultiLineString = 5,
MultiPolygon = 6,
}
Variants§
Trait Implementations§
Source§impl From<GeometryType> for JsValue
impl From<GeometryType> for JsValue
Source§fn from(value: GeometryType) -> Self
fn from(value: GeometryType) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for GeometryType
impl FromWasmAbi for GeometryType
Source§impl IntoWasmAbi for GeometryType
impl IntoWasmAbi for GeometryType
Source§impl OptionFromWasmAbi for GeometryType
impl OptionFromWasmAbi for GeometryType
Source§impl OptionIntoWasmAbi for GeometryType
impl OptionIntoWasmAbi for GeometryType
Source§impl TryFromJsValue for GeometryType
impl TryFromJsValue for GeometryType
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <GeometryType as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <GeometryType as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for GeometryType
impl VectorFromWasmAbi for GeometryType
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[GeometryType]>
Source§impl VectorIntoJsValue for GeometryType
impl VectorIntoJsValue for GeometryType
fn vector_into_jsvalue(vector: Box<[GeometryType]>) -> JsValue
Source§impl VectorIntoWasmAbi for GeometryType
impl VectorIntoWasmAbi for GeometryType
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[GeometryType]>) -> Self::Abi
Source§impl WasmDescribeVector for GeometryType
impl WasmDescribeVector for GeometryType
Auto Trait Implementations§
impl Freeze for GeometryType
impl RefUnwindSafe for GeometryType
impl Send for GeometryType
impl Sync for GeometryType
impl Unpin for GeometryType
impl UnwindSafe for GeometryType
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
.