Skip to main content

Layer01

Struct Layer01 

Source
pub struct Layer01<'a> {
    pub name: &'a str,
    pub extent: u32,
    pub id: Option<Id<'a>>,
    pub geometry: Geometry<'a>,
    pub properties: Vec<Property<'a>>,
}
Expand description

Representation of a feature table layer encoded as MLT tag 0x01

Fields§

§name: &'a str§extent: u32§id: Option<Id<'a>>§geometry: Geometry<'a>§properties: Vec<Property<'a>>

Implementations§

Source§

impl Layer01<'_>

Source

pub fn from_bytes<'a>( input: &'a [u8], parser: &mut Parser, ) -> Result<Layer01<'a>, MltError>

Parse v01::Layer metadata, reserving decoded memory against the parser’s budget.

Source

pub fn decode_id( &mut self, dec: &mut Decoder, ) -> Result<Option<&mut IdValues>, MltError>

Decode only the ID column, leaving other columns in their encoded form.

Use this instead of Self::decode_all when other columns will be accessed lazily.

Source

pub fn decode_geometry( &mut self, dec: &mut Decoder, ) -> MltResult<&mut GeometryValues>

Decode only the geometry column, leaving other columns in their encoded form.

Use this instead of Self::decode_all when other columns will be accessed lazily.

Source

pub fn decode_properties(&mut self, dec: &mut Decoder) -> MltResult<()>

Decode only the property columns, leaving other columns in their encoded form.

Use this instead of Self::decode_all when other columns will be accessed lazily.

Source

pub fn decode_all(&mut self, dec: &mut Decoder) -> MltResult<()>

Source§

impl Layer01<'_>

Source

pub fn into_tile(self, dec: &mut Decoder) -> MltResult<TileLayer01>

Decode and convert into a row-oriented TileLayer01, charging every heap allocation against dec.

Callers do not need to pre-call decode_all on the source layer.

Trait Implementations§

Source§

impl Analyze for Layer01<'_>

Source§

fn collect_statistic(&self, stat: StatType) -> usize

Source§

fn for_each_stream(&self, cb: &mut dyn FnMut(StreamMeta))

Call cb with the StreamMeta of every stream contained in self. Default implementation is a no-op (types that hold no streams).
Source§

impl<'a> Debug for Layer01<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq<Layer01<'_>> for StagedLayer01

Source§

fn eq(&self, other: &Layer01<'_>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<StagedLayer01> for Layer01<'_>

Source§

fn eq(&self, other: &StagedLayer01) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> PartialEq for Layer01<'a>

Source§

fn eq(&self, other: &Layer01<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> StructuralPartialEq for Layer01<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Layer01<'a>

§

impl<'a> RefUnwindSafe for Layer01<'a>

§

impl<'a> Send for Layer01<'a>

§

impl<'a> Sync for Layer01<'a>

§

impl<'a> Unpin for Layer01<'a>

§

impl<'a> UnsafeUnpin for Layer01<'a>

§

impl<'a> UnwindSafe for Layer01<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V