Struct osmpbf::block::HeaderBlock
source · pub struct HeaderBlock { /* private fields */ }
Expand description
A HeaderBlock
. It contains metadata about following PrimitiveBlock
s.
Implementations§
source§impl HeaderBlock
impl HeaderBlock
sourcepub fn bbox(&self) -> Option<HeaderBBox>
pub fn bbox(&self) -> Option<HeaderBBox>
Returns the (optional) bounding box of the included features.
sourcepub fn required_features(&self) -> &[String]
pub fn required_features(&self) -> &[String]
Returns a list of required features that a parser needs to implement to parse the following
PrimitiveBlock
s.
sourcepub fn optional_features(&self) -> &[String]
pub fn optional_features(&self) -> &[String]
Returns a list of optional features that a parser can choose to ignore.
sourcepub fn writing_program(&self) -> Option<&str>
pub fn writing_program(&self) -> Option<&str>
Returns the name of the program that generated the file or None
if unset.
Trait Implementations§
source§impl Clone for HeaderBlock
impl Clone for HeaderBlock
source§fn clone(&self) -> HeaderBlock
fn clone(&self) -> HeaderBlock
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for HeaderBlock
impl Send for HeaderBlock
impl Sync for HeaderBlock
impl Unpin for HeaderBlock
impl UnwindSafe for HeaderBlock
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