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 DebugLinepub fn new(p1: Point3, p2: Point3) -> Self[src]
pub fn new(p1: Point3, p2: Point3) -> SelfCreate a line from p1 to p2.
pub fn color(self, color: Color) -> Self[src]
pub fn color(self, color: Color) -> SelfSet the color of the line (default is white).
Trait Implementations
impl Debug for DebugLine[src]
impl Debug for DebugLinefn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for DebugLine[src]
impl Copy for DebugLineimpl Clone for DebugLine[src]
impl Clone for DebugLinefn clone(&self) -> DebugLine[src]
fn clone(&self) -> DebugLineReturns 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