Struct flatgeobuf::Geometry
source · pub struct Geometry<'a> {
pub _tab: Table<'a>,
}
Fields§
§_tab: Table<'a>
Implementations§
source§impl<'a> Geometry<'a>
impl<'a> Geometry<'a>
pub const VT_ENDS: VOffsetT = 4u16
pub const VT_XY: VOffsetT = 6u16
pub const VT_Z: VOffsetT = 8u16
pub const VT_M: VOffsetT = 10u16
pub const VT_T: VOffsetT = 12u16
pub const VT_TM: VOffsetT = 14u16
pub const VT_TYPE_: VOffsetT = 16u16
pub const VT_PARTS: VOffsetT = 18u16
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>, args: &'args GeometryArgs<'args> ) -> WIPOffset<Geometry<'bldr>>
pub fn ends(&self) -> Option<Vector<'a, u32>>
pub fn xy(&self) -> Option<Vector<'a, f64>>
pub fn z(&self) -> Option<Vector<'a, f64>>
pub fn m(&self) -> Option<Vector<'a, f64>>
pub fn t(&self) -> Option<Vector<'a, f64>>
pub fn tm(&self) -> Option<Vector<'a, u64>>
pub fn type_(&self) -> GeometryType
pub fn parts(&self) -> Option<Vector<'a, ForwardsUOffset<Geometry<'a>>>>
source§impl Geometry<'_>
impl Geometry<'_>
sourcepub fn process<P: GeomProcessor>(
&self,
processor: &mut P,
geometry_type: GeometryType
) -> Result<()>
pub fn process<P: GeomProcessor>( &self, processor: &mut P, geometry_type: GeometryType ) -> Result<()>
Read FlatGeobuf geometry
Trait Implementations§
source§impl<'a> PartialEq for Geometry<'a>
impl<'a> PartialEq for Geometry<'a>
source§impl Verifiable for Geometry<'_>
impl Verifiable for Geometry<'_>
source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos
in the verifier’s buffer.
Should not need to be called directly.impl<'a> Copy for Geometry<'a>
impl<'a> StructuralPartialEq for Geometry<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Geometry<'a>
impl<'a> Send for Geometry<'a>
impl<'a> Sync for Geometry<'a>
impl<'a> Unpin for Geometry<'a>
impl<'a> UnwindSafe for Geometry<'a>
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