Struct buffer_graphics_lib::shapes::collection::ShapeCollection
source · [−]Implementations
sourceimpl<K: Eq + PartialEq + Hash + Clone> ShapeCollection<K>
impl<K: Eq + PartialEq + Hash + Clone> ShapeCollection<K>
pub fn rects(&self) -> &HashMap<K, Drawable<Rect>>
pub fn lines(&self) -> &HashMap<K, Drawable<Line>>
pub fn circles(&self) -> &HashMap<K, Drawable<Circle>>
pub fn triangles(&self) -> &HashMap<K, Drawable<Triangle>>
pub fn polygons(&self) -> &HashMap<K, Drawable<Polygon>>
pub fn ellipses(&self) -> &HashMap<K, Drawable<Ellipse>>
pub fn render(&self, graphics: &mut Graphics<'_>)
pub fn remove_by_id(&mut self, key: &K)
Trait Implementations
Auto Trait Implementations
impl<K> RefUnwindSafe for ShapeCollection<K>where
K: RefUnwindSafe,
impl<K> Send for ShapeCollection<K>where
K: Send,
impl<K> Sync for ShapeCollection<K>where
K: Sync,
impl<K> Unpin for ShapeCollection<K>where
K: Unpin,
impl<K> UnwindSafe for ShapeCollection<K>where
K: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_big_endian()
.sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_native_endian()
.