pub struct TextureMap<VR: VertexRef> { /* private fields */ }Implementations§
Source§impl<VR: VertexRef> TextureMap<VR>
impl<VR: VertexRef> TextureMap<VR>
pub fn new() -> Self
pub fn is_empty(&self) -> bool
pub fn add_vertex(&mut self, vertex: Option<VertexIndex<VR>>)
pub fn add_ring(&mut self, ring_start: VertexIndex<VR>)
pub fn add_ring_texture(&mut self, texture: Option<TextureHandle>)
pub fn vertices(&self) -> &[Option<VertexIndex<VR>>]
pub fn vertices_mut(&mut self) -> &mut [Option<VertexIndex<VR>>]
pub fn rings(&self) -> &[VertexIndex<VR>]
pub fn rings_mut(&mut self) -> &mut [VertexIndex<VR>]
pub fn ring_textures(&self) -> Vec<Option<TextureHandle>>
pub fn set_ring_texture( &mut self, ring_index: usize, texture: Option<TextureHandle>, ) -> bool
Trait Implementations§
Source§impl<VR: Clone + VertexRef> Clone for TextureMap<VR>
impl<VR: Clone + VertexRef> Clone for TextureMap<VR>
Source§fn clone(&self) -> TextureMap<VR>
fn clone(&self) -> TextureMap<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 TextureMap<VR>
impl<VR: Default + VertexRef> Default for TextureMap<VR>
Source§fn default() -> TextureMap<VR>
fn default() -> TextureMap<VR>
Returns the “default value” for a type. Read more
Source§impl<VR: Ord + VertexRef> Ord for TextureMap<VR>
impl<VR: Ord + VertexRef> Ord for TextureMap<VR>
Source§fn cmp(&self, other: &TextureMap<VR>) -> Ordering
fn cmp(&self, other: &TextureMap<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 TextureMap<VR>
impl<VR: PartialOrd + VertexRef> PartialOrd for TextureMap<VR>
impl<VR: Eq + VertexRef> Eq for TextureMap<VR>
impl<VR: VertexRef> StructuralPartialEq for TextureMap<VR>
Auto Trait Implementations§
impl<VR> Freeze for TextureMap<VR>
impl<VR> RefUnwindSafe for TextureMap<VR>where
VR: RefUnwindSafe,
impl<VR> Send for TextureMap<VR>where
VR: Send,
impl<VR> Sync for TextureMap<VR>where
VR: Sync,
impl<VR> Unpin for TextureMap<VR>where
VR: Unpin,
impl<VR> UnsafeUnpin for TextureMap<VR>
impl<VR> UnwindSafe for TextureMap<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