Enum shapefile::ShapeType [−][src]
pub enum ShapeType {}Show variants
NullShape, Point, Polyline, Polygon, Multipoint, PointZ, PolylineZ, PolygonZ, MultipointZ, PointM, PolylineM, PolygonM, MultipointM, Multipatch,
The enum for the ShapeType as defined in the specification
Variants
Implementations
impl ShapeType
[src]
impl ShapeType
[src]pub fn from(code: i32) -> Option<ShapeType>
[src]
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);
pub fn has_z(self) -> bool
[src]
Returns whether the ShapeType has the third dimension Z
pub fn has_m(self) -> bool
[src]
Returns whether the ShapeType has the optional measure dimension
pub fn is_multipart(self) -> bool
[src]
Returns true if the shape may have multiple parts
Trait Implementations
impl StructuralPartialEq for ShapeType
[src]
impl StructuralPartialEq for ShapeType
[src]Auto Trait Implementations
impl RefUnwindSafe for ShapeType
impl RefUnwindSafe for ShapeType
impl UnwindSafe for ShapeType
impl UnwindSafe for ShapeType