Struct kalast::body::AstronomicalAngle
source · pub struct AstronomicalAngle(/* private fields */);
Implementations§
source§impl AstronomicalAngle
impl AstronomicalAngle
pub fn new(angle: Angle) -> Self
pub fn parse(s: &str) -> AstronomicalAngleResult<Self>
pub fn from_value(s: &str) -> AstronomicalAngleResult<Self>
pub fn from_hms(s: &str) -> AstronomicalAngleResult<Self>
pub fn from_dms(s: &str) -> AstronomicalAngleResult<Self>
Trait Implementations§
source§impl Clone for AstronomicalAngle
impl Clone for AstronomicalAngle
source§fn clone(&self) -> AstronomicalAngle
fn clone(&self) -> AstronomicalAngle
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 AstronomicalAngle
impl Debug for AstronomicalAngle
source§impl Default for AstronomicalAngle
impl Default for AstronomicalAngle
source§fn default() -> AstronomicalAngle
fn default() -> AstronomicalAngle
Returns the “default value” for a type. Read more
source§impl Deref for AstronomicalAngle
impl Deref for AstronomicalAngle
§type Target = Quantity<dyn Dimension<I = Z0, N = Z0, L = Z0, T = Z0, Kind = dyn AngleKind, J = Z0, M = Z0, Th = Z0>, dyn Units<f64, mass = kilogram, length = meter, thermodynamic_temperature = kelvin, time = second, amount_of_substance = mole, luminous_intensity = candela, electric_current = ampere>, f64>
type Target = Quantity<dyn Dimension<I = Z0, N = Z0, L = Z0, T = Z0, Kind = dyn AngleKind, J = Z0, M = Z0, Th = Z0>, dyn Units<f64, mass = kilogram, length = meter, thermodynamic_temperature = kelvin, time = second, amount_of_substance = mole, luminous_intensity = candela, electric_current = ampere>, f64>
The resulting type after dereferencing.
source§impl DerefMut for AstronomicalAngle
impl DerefMut for AstronomicalAngle
source§impl<'de> Deserialize<'de> for AstronomicalAngle
impl<'de> Deserialize<'de> for AstronomicalAngle
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromStr for AstronomicalAngle
impl FromStr for AstronomicalAngle
§type Err = AstronomicalAngleConversionError
type Err = AstronomicalAngleConversionError
The associated error which can be returned from parsing.
Auto Trait Implementations§
impl RefUnwindSafe for AstronomicalAngle
impl Send for AstronomicalAngle
impl Sync for AstronomicalAngle
impl Unpin for AstronomicalAngle
impl UnwindSafe for AstronomicalAngle
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.