Struct sc2::debug::DebugText [−][src]
pub struct DebugText { /* fields omitted */ }Debug text.
Methods
impl DebugText[src]
impl DebugTextpub fn new(text: String) -> Self[src]
pub fn new(text: String) -> SelfText to display.
pub fn target(self, target: DebugTextTarget) -> Self[src]
pub fn target(self, target: DebugTextTarget) -> SelfTarget in screen or world space (default is None).
If the target is None, then text appears at top-left of screen.
pub fn color(self, color: Color) -> Self[src]
pub fn color(self, color: Color) -> SelfSet the color of the text (default is white).
Trait Implementations
impl Debug for DebugText[src]
impl Debug for DebugTextfn 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 Clone for DebugText[src]
impl Clone for DebugTextfn clone(&self) -> DebugText[src]
fn clone(&self) -> DebugTextReturns 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<DebugText> for DebugCommand[src]
impl From<DebugText> for DebugCommand