pub struct Capsule {
pub height: f32,
pub radius: [f32; 2],
pub extra: Vec<Extra>,
}
Expand description
Declares a capsule primitive that is centered on and aligned with the local y axis.
Fields§
§height: f32
The length of the line segment connecting the centers of the capping hemispheres.
radius: [f32; 2]
The radii of the capsule (it may be elliptical).
extra: Vec<Extra>
Provides arbitrary additional information about this element.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Capsule
impl RefUnwindSafe for Capsule
impl Send for Capsule
impl Sync for Capsule
impl Unpin for Capsule
impl UnwindSafe for Capsule
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