pub struct Span {
pub rect: Rect,
pub radius: f32,
pub alpha: f32,
}Fields§
§rect: Rect§radius: f32§alpha: f32Implementations§
Source§impl Span
impl Span
pub fn rect(rect: Rect) -> Self
pub fn rounded(rect: Rect, radius: f32) -> Self
pub fn solid(rect: Rect) -> Self
pub fn edge(rect: Rect, coverage: f32) -> Self
pub fn with_alpha(self, alpha: f32) -> Self
pub fn quad(self, color: Color) -> Quad
pub fn is_visible(&self) -> bool
Trait Implementations§
impl Copy for Span
impl StructuralPartialEq for Span
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnsafeUnpin for Span
impl UnwindSafe for Span
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more