Struct buffer_graphics_lib::shapes::collection::AutoShapeCollection
source · [−]pub struct AutoShapeCollection { /* private fields */ }
Implementations
sourceimpl AutoShapeCollection
impl AutoShapeCollection
pub fn rects(&self) -> &HashMap<usize, Drawable<Rect>>
pub fn lines(&self) -> &HashMap<usize, Drawable<Line>>
pub fn circles(&self) -> &HashMap<usize, Drawable<Circle>>
pub fn triangles(&self) -> &HashMap<usize, Drawable<Triangle>>
pub fn polygons(&self) -> &HashMap<usize, Drawable<Polygon>>
pub fn ellipses(&self) -> &HashMap<usize, Drawable<Ellipse>>
pub fn render(&self, graphics: &mut Graphics<'_>)
pub fn remove_by_id(&mut self, key: usize)
Trait Implementations
sourceimpl AutoAddShape<usize, Circle> for AutoShapeCollection
impl AutoAddShape<usize, Circle> for AutoShapeCollection
sourceimpl AutoAddShape<usize, Ellipse> for AutoShapeCollection
impl AutoAddShape<usize, Ellipse> for AutoShapeCollection
sourceimpl AutoAddShape<usize, Line> for AutoShapeCollection
impl AutoAddShape<usize, Line> for AutoShapeCollection
sourceimpl AutoAddShape<usize, Polygon> for AutoShapeCollection
impl AutoAddShape<usize, Polygon> for AutoShapeCollection
sourceimpl AutoAddShape<usize, Rect> for AutoShapeCollection
impl AutoAddShape<usize, Rect> for AutoShapeCollection
sourceimpl AutoAddShape<usize, Triangle> for AutoShapeCollection
impl AutoAddShape<usize, Triangle> for AutoShapeCollection
sourceimpl Debug for AutoShapeCollection
impl Debug for AutoShapeCollection
sourceimpl Default for AutoShapeCollection
impl Default for AutoShapeCollection
sourcefn default() -> AutoShapeCollection
fn default() -> AutoShapeCollection
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for AutoShapeCollection
impl Send for AutoShapeCollection
impl Sync for AutoShapeCollection
impl Unpin for AutoShapeCollection
impl UnwindSafe for AutoShapeCollection
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()
.