pub struct RegionEntityMapping {
pub region_id: String,
pub mesh_id: String,
pub entity_kind: EntityKind,
pub ranges: Vec<EntityIdRange>,
}Fields§
§region_id: String§mesh_id: String§entity_kind: EntityKind§ranges: Vec<EntityIdRange>Implementations§
Source§impl RegionEntityMapping
impl RegionEntityMapping
pub fn new( region_id: impl Into<String>, mesh_id: impl Into<String>, entity_kind: EntityKind, ranges: Vec<EntityIdRange>, ) -> Self
pub fn all_faces( region_id: impl Into<String>, mesh_id: impl Into<String>, face_count: u64, ) -> Self
pub fn entity_count(&self) -> u64
pub fn contains_entity(&self, entity_id: u64) -> bool
Trait Implementations§
Source§impl Clone for RegionEntityMapping
impl Clone for RegionEntityMapping
Source§fn clone(&self) -> RegionEntityMapping
fn clone(&self) -> RegionEntityMapping
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RegionEntityMapping
impl Debug for RegionEntityMapping
Source§impl<'de> Deserialize<'de> for RegionEntityMapping
impl<'de> Deserialize<'de> for RegionEntityMapping
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RegionEntityMapping
Source§impl PartialEq for RegionEntityMapping
impl PartialEq for RegionEntityMapping
Source§fn eq(&self, other: &RegionEntityMapping) -> bool
fn eq(&self, other: &RegionEntityMapping) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RegionEntityMapping
impl Serialize for RegionEntityMapping
impl StructuralPartialEq for RegionEntityMapping
Auto Trait Implementations§
impl Freeze for RegionEntityMapping
impl RefUnwindSafe for RegionEntityMapping
impl Send for RegionEntityMapping
impl Sync for RegionEntityMapping
impl Unpin for RegionEntityMapping
impl UnsafeUnpin for RegionEntityMapping
impl UnwindSafe for RegionEntityMapping
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