pub struct CircularDimension { /* private fields */ }
Expand description
A discrete measurement of a Circle with a CircularAspect
and a Length
Implementations§
Source§impl CircularDimension
impl CircularDimension
pub const fn new( dimension_type: CircularAspect, dimension: Length, ) -> CircularDimension
pub const fn new_radius(radius: Length) -> CircularDimension
pub const fn new_diameter(diameter: Length) -> CircularDimension
pub fn get_aspect(&self) -> CircularAspect
pub fn get_dimension(&self) -> Length
pub fn as_radius(self) -> CircularDimension
pub fn as_diameter(self) -> CircularDimension
pub fn as_aspect(self, aspect: CircularAspect) -> CircularDimension
Trait Implementations§
Source§impl Clone for CircularDimension
impl Clone for CircularDimension
Source§fn clone(&self) -> CircularDimension
fn clone(&self) -> CircularDimension
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CircularDimension
impl Debug for CircularDimension
Source§impl Default for CircularDimension
impl Default for CircularDimension
Source§impl Display for CircularDimension
impl Display for CircularDimension
Source§impl Div<f64> for &CircularDimension
impl Div<f64> for &CircularDimension
Source§impl Div<f64> for CircularDimension
impl Div<f64> for CircularDimension
Source§impl DivAssign<f64> for CircularDimension
impl DivAssign<f64> for CircularDimension
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moreSource§impl From<&CircularDimension> for Ellipse
impl From<&CircularDimension> for Ellipse
Source§fn from(value: &CircularDimension) -> Self
fn from(value: &CircularDimension) -> Self
Converts to this type from the input type.
Source§impl From<CircularDimension> for Ellipse
impl From<CircularDimension> for Ellipse
Source§fn from(value: CircularDimension) -> Self
fn from(value: CircularDimension) -> Self
Converts to this type from the input type.
Source§impl Mul<f64> for &CircularDimension
impl Mul<f64> for &CircularDimension
Source§impl Mul<f64> for CircularDimension
impl Mul<f64> for CircularDimension
Source§impl MulAssign<f64> for CircularDimension
impl MulAssign<f64> for CircularDimension
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moreSource§impl PartialEq for CircularDimension
impl PartialEq for CircularDimension
Source§impl PartialOrd for CircularDimension
impl PartialOrd for CircularDimension
impl Copy for CircularDimension
impl StructuralPartialEq for CircularDimension
Auto Trait Implementations§
impl Freeze for CircularDimension
impl RefUnwindSafe for CircularDimension
impl Send for CircularDimension
impl Sync for CircularDimension
impl Unpin for CircularDimension
impl UnwindSafe for CircularDimension
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