Struct flatgeobuf::Header
source · [−]pub struct Header<'a> {
pub _tab: Table<'a>,
}
Fields
_tab: Table<'a>
Implementations
sourceimpl<'a> Header<'a>
impl<'a> Header<'a>
pub 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 HeaderArgs<'args>
) -> WIPOffset<Header<'bldr>>
pub const VT_NAME: VOffsetT = 4u16
pub const VT_ENVELOPE: VOffsetT = 6u16
pub const VT_GEOMETRY_TYPE: VOffsetT = 8u16
pub const VT_HASZ: VOffsetT = 10u16
pub const VT_HASM: VOffsetT = 12u16
pub const VT_HAST: VOffsetT = 14u16
pub const VT_HASTM: VOffsetT = 16u16
pub const VT_COLUMNS: VOffsetT = 18u16
pub const VT_FEATURES_COUNT: VOffsetT = 20u16
pub const VT_INDEX_NODE_SIZE: VOffsetT = 22u16
pub const VT_CRS: VOffsetT = 24u16
pub const VT_TITLE: VOffsetT = 26u16
pub const VT_DESCRIPTION: VOffsetT = 28u16
pub const VT_METADATA: VOffsetT = 30u16
pub fn name(&self) -> Option<&'a str>
pub fn envelope(&self) -> Option<Vector<'a, f64>>
pub fn geometry_type(&self) -> GeometryType
pub fn hasZ(&self) -> bool
pub fn hasM(&self) -> bool
pub fn hasT(&self) -> bool
pub fn hasTM(&self) -> bool
pub fn columns(&self) -> Option<Vector<'a, ForwardsUOffset<Column<'a>>>>
pub fn features_count(&self) -> u64
pub fn index_node_size(&self) -> u16
pub fn crs(&self) -> Option<Crs<'a>>
pub fn title(&self) -> Option<&'a str>
pub fn description(&self) -> Option<&'a str>
pub fn metadata(&self) -> Option<&'a str>
Trait Implementations
sourceimpl Verifiable for Header<'_>
impl Verifiable for Header<'_>
sourcefn 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. Read more
impl<'a> Copy for Header<'a>
impl<'a> StructuralPartialEq for Header<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Header<'a>
impl<'a> Send for Header<'a>
impl<'a> Sync for Header<'a>
impl<'a> Unpin for Header<'a>
impl<'a> UnwindSafe for Header<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more