Struct sc2::debug::DebugLine [−][src]
pub struct DebugLine { /* fields omitted */ }
A debug line defined by a start and end point.
Methods
impl DebugLine
[src]
impl DebugLine
pub fn new(p1: Point3, p2: Point3) -> Self
[src]
pub fn new(p1: Point3, p2: Point3) -> Self
Create a line from p1 to p2.
pub fn color(self, color: Color) -> Self
[src]
pub fn color(self, color: Color) -> Self
Set the color of the line (default is white).
Trait Implementations
impl Debug for DebugLine
[src]
impl Debug for DebugLine
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for DebugLine
[src]
impl Copy for DebugLine
impl Clone for DebugLine
[src]
impl Clone for DebugLine
fn clone(&self) -> DebugLine
[src]
fn clone(&self) -> DebugLine
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl From<DebugLine> for DebugCommand
[src]
impl From<DebugLine> for DebugCommand