Struct sc2::debug::DebugText [−][src]
pub struct DebugText { /* fields omitted */ }
Debug text.
Methods
impl DebugText
[src]
impl DebugText
pub fn new(text: String) -> Self
[src]
pub fn new(text: String) -> Self
Text to display.
pub fn target(self, target: DebugTextTarget) -> Self
[src]
pub fn target(self, target: DebugTextTarget) -> Self
Target 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) -> Self
Set the color of the text (default is white).
Trait Implementations
impl Debug for DebugText
[src]
impl Debug for DebugText
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 Clone for DebugText
[src]
impl Clone for DebugText
fn clone(&self) -> DebugText
[src]
fn clone(&self) -> DebugText
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<DebugText> for DebugCommand
[src]
impl From<DebugText> for DebugCommand