pub struct ShapefileParts { /* private fields */ }Expand description
The generated shapefile components, plus what was inferred along the way.
Every getter copies its data out of wasm linear memory, so the returned buffers stay valid after the object is freed.
Implementations§
Source§impl ShapefileParts
impl ShapefileParts
Sourcepub fn shx(&self) -> Vec<u8> ⓘ
pub fn shx(&self) -> Vec<u8> ⓘ
Contents of the .shx: a fixed-width index into the .shp. Not needed
to read the file back, but GIS software expects it to be present.
Sourcepub fn shape_type(&self) -> String
pub fn shape_type(&self) -> String
The ESRI shape type that was written, e.g. PolygonZ.
Sourcepub fn dimensions(&self) -> String
pub fn dimensions(&self) -> String
Which ordinates were written: xy, xym, xyz or xyzm.
Sourcepub fn feature_count(&self) -> usize
pub fn feature_count(&self) -> usize
How many features made it into the file.
Sourcepub fn skipped_count(&self) -> usize
pub fn skipped_count(&self) -> usize
How many input features were dropped for having no geometry.
Trait Implementations§
Source§impl Debug for ShapefileParts
impl Debug for ShapefileParts
Source§impl From<ShapefileParts> for JsValue
impl From<ShapefileParts> for JsValue
Source§fn from(value: ShapefileParts) -> Self
fn from(value: ShapefileParts) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ShapefileParts
impl FromWasmAbi for ShapefileParts
Source§impl IntoWasmAbi for ShapefileParts
impl IntoWasmAbi for ShapefileParts
Source§impl LongRefFromWasmAbi for ShapefileParts
impl LongRefFromWasmAbi for ShapefileParts
Source§type Abi = WasmPtr<WasmRefCell<ShapefileParts>>
type Abi = WasmPtr<WasmRefCell<ShapefileParts>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<ShapefileParts>
type Anchor = RcRef<ShapefileParts>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for ShapefileParts
impl OptionFromWasmAbi for ShapefileParts
Source§impl OptionIntoWasmAbi for ShapefileParts
impl OptionIntoWasmAbi for ShapefileParts
Source§impl RefFromWasmAbi for ShapefileParts
impl RefFromWasmAbi for ShapefileParts
Source§type Abi = WasmPtr<WasmRefCell<ShapefileParts>>
type Abi = WasmPtr<WasmRefCell<ShapefileParts>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<ShapefileParts>
type Anchor = RcRef<ShapefileParts>
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 ShapefileParts
impl RefMutFromWasmAbi for ShapefileParts
Source§type Abi = WasmPtr<WasmRefCell<ShapefileParts>>
type Abi = WasmPtr<WasmRefCell<ShapefileParts>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<ShapefileParts>
type Anchor = RcRefMut<ShapefileParts>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl SupportsConstructor for ShapefileParts
impl SupportsInstanceProperty for ShapefileParts
impl SupportsStaticProperty for ShapefileParts
Source§impl TryFromJsValue for ShapefileParts
impl TryFromJsValue for ShapefileParts
Source§impl VectorFromWasmAbi for ShapefileParts
impl VectorFromWasmAbi for ShapefileParts
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ShapefileParts]>
Source§impl VectorIntoWasmAbi for ShapefileParts
impl VectorIntoWasmAbi for ShapefileParts
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ShapefileParts]>) -> Self::Abi
Source§impl WasmDescribeVector for ShapefileParts
impl WasmDescribeVector for ShapefileParts
Auto Trait Implementations§
impl Freeze for ShapefileParts
impl RefUnwindSafe for ShapefileParts
impl Send for ShapefileParts
impl Sync for ShapefileParts
impl Unpin for ShapefileParts
impl UnsafeUnpin for ShapefileParts
impl UnwindSafe for ShapefileParts
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> 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.