Skip to main content

RelationalModelBuilder

Struct RelationalModelBuilder 

Source
pub struct RelationalModelBuilder { /* private fields */ }

Implementations§

Source§

impl RelationalModelBuilder

Source

pub fn new(model_type: CityModelType, options: RelationalImportOptions) -> Self

Source

pub fn reserve(&mut self, _capacities: RelationalCapacities) -> Result<()>

Source

pub fn push_symbols(&mut self, table: SymbolTableOwned) -> Result<()>

Source

pub fn push_vertices(&mut self, table: VertexTableOwned) -> Result<()>

Source

pub fn push_template_vertices(&mut self, table: VertexTableOwned) -> Result<()>

Source

pub fn push_uv_vertices(&mut self, table: UvVertexTableOwned) -> Result<()>

Source

pub fn push_semantics(&mut self, table: SemanticTableOwned) -> Result<()>

Source

pub fn push_materials(&mut self, table: MaterialTableOwned) -> Result<()>

Source

pub fn push_textures(&mut self, table: TextureTableOwned) -> Result<()>

Source

pub fn push_attributes(&mut self, table: AttributeArenaOwned) -> Result<()>

Source

pub fn push_cityobjects(&mut self, table: CityObjectTableOwned) -> Result<()>

Source

pub fn push_geometries(&mut self, table: GeometryTableOwned) -> Result<()>

Source

pub fn push_geometry_templates( &mut self, table: GeometryTableOwned, ) -> Result<()>

Source

pub fn push_metadata(&mut self, view: Option<MetadataOwned>) -> Result<()>

Source

pub fn push_transform(&mut self, view: Option<TransformOwned>) -> Result<()>

Source

pub fn push_defaults(&mut self, view: DefaultThemeOwned) -> Result<()>

Source

pub fn push_extensions(&mut self, table: ExtensionTableOwned) -> Result<()>

Source

pub fn push_feature_root( &mut self, feature_root: Option<CityObjectId>, ) -> Result<()>

Source

pub fn finish(self) -> Result<OwnedCityModel>

Trait Implementations§

Source§

impl Debug for RelationalModelBuilder

Source§

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

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

impl Default for RelationalModelBuilder

Source§

fn default() -> RelationalModelBuilder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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.