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) -> Span
pub fn rounded(rect: Rect, radius: f32) -> Span
pub fn solid(rect: Rect) -> Span
pub fn edge(rect: Rect, coverage: f32) -> Span
pub fn with_alpha(self, alpha: f32) -> Span
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