pub struct MaterialMap<VR: VertexRef> { /* private fields */ }Implementations§
Source§impl<VR: VertexRef> MaterialMap<VR>
impl<VR: VertexRef> MaterialMap<VR>
pub fn new() -> Self
pub fn is_empty(&self) -> bool
pub fn add_point(&mut self, resource: Option<MaterialHandle>)
pub fn add_linestring(&mut self, resource: Option<MaterialHandle>)
pub fn add_surface(&mut self, resource: Option<MaterialHandle>)
pub fn points(&self) -> &[Option<MaterialHandle>]
pub fn linestrings(&self) -> &[Option<MaterialHandle>]
pub fn surfaces(&self) -> &[Option<MaterialHandle>]
pub fn check_type(&self) -> BoundaryType
Trait Implementations§
Source§impl<VR: Clone + VertexRef> Clone for MaterialMap<VR>
impl<VR: Clone + VertexRef> Clone for MaterialMap<VR>
Source§fn clone(&self) -> MaterialMap<VR>
fn clone(&self) -> MaterialMap<VR>
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<VR: Default + VertexRef> Default for MaterialMap<VR>
impl<VR: Default + VertexRef> Default for MaterialMap<VR>
Source§fn default() -> MaterialMap<VR>
fn default() -> MaterialMap<VR>
Returns the “default value” for a type. Read more
Source§impl<VR: Ord + VertexRef> Ord for MaterialMap<VR>
impl<VR: Ord + VertexRef> Ord for MaterialMap<VR>
Source§fn cmp(&self, other: &MaterialMap<VR>) -> Ordering
fn cmp(&self, other: &MaterialMap<VR>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<VR: PartialOrd + VertexRef> PartialOrd for MaterialMap<VR>
impl<VR: PartialOrd + VertexRef> PartialOrd for MaterialMap<VR>
impl<VR: Eq + VertexRef> Eq for MaterialMap<VR>
impl<VR: VertexRef> StructuralPartialEq for MaterialMap<VR>
Auto Trait Implementations§
impl<VR> Freeze for MaterialMap<VR>
impl<VR> RefUnwindSafe for MaterialMap<VR>where
VR: RefUnwindSafe,
impl<VR> Send for MaterialMap<VR>where
VR: Send,
impl<VR> Sync for MaterialMap<VR>where
VR: Sync,
impl<VR> Unpin for MaterialMap<VR>where
VR: Unpin,
impl<VR> UnsafeUnpin for MaterialMap<VR>
impl<VR> UnwindSafe for MaterialMap<VR>where
VR: UnwindSafe,
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