Enum screeps::objects::visual::MapVisualShape
source · pub enum MapVisualShape {
Circle(MapCircleData),
Line(MapLineData),
Rect(MapRectData),
Poly(MapPolyData),
Text(MapTextData),
}
Variants§
Implementations§
source§impl MapVisualShape
impl MapVisualShape
pub fn circle(center: Position, style: CircleStyle) -> MapVisualShape
pub fn line(from: Position, to: Position, style: LineStyle) -> MapVisualShape
pub fn rect( top_left: Position, width: u32, height: u32, style: RectStyle ) -> MapVisualShape
pub fn poly(points: Vec<MapPolyPoint>, style: PolyStyle) -> MapVisualShape
pub fn text(pos: Position, text: String, style: MapTextStyle) -> MapVisualShape
Trait Implementations§
source§impl Clone for MapVisualShape
impl Clone for MapVisualShape
source§fn clone(&self) -> MapVisualShape
fn clone(&self) -> MapVisualShape
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for MapVisualShape
impl Send for MapVisualShape
impl Sync for MapVisualShape
impl Unpin for MapVisualShape
impl UnwindSafe for MapVisualShape
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