pub enum ShapeType {
Show 14 variants
NullShape,
Point,
Polyline,
Polygon,
Multipoint,
PointZ,
PolylineZ,
PolygonZ,
MultipointZ,
PointM,
PolylineM,
PolygonM,
MultipointM,
Multipatch,
}
Expand description
The enum for the ShapeType as defined in the specification
Variants§
NullShape
Point
Polyline
Polygon
Multipoint
PointZ
PolylineZ
PolygonZ
MultipointZ
PointM
PolylineM
PolygonM
MultipointM
Multipatch
Implementations§
source§impl ShapeType
impl ShapeType
sourcepub fn from(code: i32) -> Option<ShapeType>
pub fn from(code: i32) -> Option<ShapeType>
Returns the ShapeType corresponding to the input code if the code is valid
use shapefile::ShapeType;
assert_eq!(ShapeType::from(25), Some(ShapeType::PolygonM));
assert_eq!(ShapeType::from(60), None);
sourcepub fn is_multipart(self) -> bool
pub fn is_multipart(self) -> bool
Returns true if the shape may have multiple parts
Trait Implementations§
source§impl PartialEq<ShapeType> for ShapeType
impl PartialEq<ShapeType> for ShapeType
impl Copy for ShapeType
impl StructuralPartialEq for ShapeType
Auto Trait Implementations§
impl RefUnwindSafe for ShapeType
impl Send for ShapeType
impl Sync for ShapeType
impl Unpin for ShapeType
impl UnwindSafe for ShapeType
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