pub enum Visual {
Circle(CircleData),
Line(LineData),
Rect(RectData),
Poly(PolyData),
Text(TextData),
}
Variants
Circle(CircleData)
Line(LineData)
Rect(RectData)
Poly(PolyData)
Text(TextData)
Implementations
sourceimpl Visual
impl Visual
pub fn circle(x: f32, y: f32, style: Option<CircleStyle>) -> Visual
pub fn line(from: (f32, f32), to: (f32, f32), style: Option<LineStyle>) -> Visual
pub fn rect(
x: f32,
y: f32,
width: f32,
height: f32,
style: Option<RectStyle>
) -> Visual
pub fn poly(points: Vec<(f32, f32)>, style: Option<PolyStyle>) -> Visual
pub fn text(x: f32, y: f32, text: String, style: Option<TextStyle>) -> Visual
Trait Implementations
impl JsSerialize for Visual
Auto Trait Implementations
impl RefUnwindSafe for Visual
impl Send for Visual
impl Sync for Visual
impl Unpin for Visual
impl UnwindSafe for Visual
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
impl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
sourcefn into_expected_type(self) -> Result<U, ConversionError>
fn into_expected_type(self) -> Result<U, ConversionError>
Casts this value as the target type, making the assumption that the types are correct. Read more