pub struct ModelSelection { /* private fields */ }Expand description
Opaque selection carrier for selection/extraction workflows.
Implementations§
Source§impl ModelSelection
impl ModelSelection
Sourcepub fn include_relatives(self, model: &CityModel) -> Result<Self>
pub fn include_relatives(self, model: &CityModel) -> Result<Self>
Expand the selection through parent and child relations.
Sourcepub fn union(&self, other: &Self) -> Self
pub fn union(&self, other: &Self) -> Self
Combine two selections, preferring whole-cityobject selection.
Sourcepub fn intersection(&self, other: &Self) -> Self
pub fn intersection(&self, other: &Self) -> Self
Keep only the overlap between two selections.
Trait Implementations§
Source§impl Clone for ModelSelection
impl Clone for ModelSelection
Source§fn clone(&self) -> ModelSelection
fn clone(&self) -> ModelSelection
Returns a duplicate 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 moreSource§impl Debug for ModelSelection
impl Debug for ModelSelection
Source§impl Default for ModelSelection
impl Default for ModelSelection
Source§fn default() -> ModelSelection
fn default() -> ModelSelection
Returns the “default value” for a type. Read more
Source§impl PartialEq for ModelSelection
impl PartialEq for ModelSelection
impl Eq for ModelSelection
impl StructuralPartialEq for ModelSelection
Auto Trait Implementations§
impl Freeze for ModelSelection
impl RefUnwindSafe for ModelSelection
impl Send for ModelSelection
impl Sync for ModelSelection
impl Unpin for ModelSelection
impl UnsafeUnpin for ModelSelection
impl UnwindSafe for ModelSelection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.