Struct libosmium::Item

source ·
#[repr(C)]
pub struct Item { /* private fields */ }
Expand description

This type is the base class responsible for libosmium’s custom memory management.

It stores an object’s dynamic size and its actual subclass as an enum.

Implementations§

Get the item’s data as byte slice padded to aligned_size

Get the item’s dynamic size aligned to ALIGN_BYTES

Get the item’s dynamic size

Get the item’s type

Convert an item’s reference into a reference of its actual subclass

Trait Implementations§

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Cast to an crate::item::Item reference

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.