pub enum VolumeShape {
Cylinder {
radius_m: f64,
},
Box {
half_y_m: f64,
half_z_m: f64,
},
}Expand description
Lateral shape of a target volume, centred on the volume’s offset.
Variants§
Trait Implementations§
Source§impl Clone for VolumeShape
impl Clone for VolumeShape
Source§fn clone(&self) -> VolumeShape
fn clone(&self) -> VolumeShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VolumeShape
Source§impl Debug for VolumeShape
impl Debug for VolumeShape
Source§impl<'de> Deserialize<'de> for VolumeShape
impl<'de> Deserialize<'de> for VolumeShape
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 PartialEq for VolumeShape
impl PartialEq for VolumeShape
Source§impl Serialize for VolumeShape
impl Serialize for VolumeShape
impl StructuralPartialEq for VolumeShape
Auto Trait Implementations§
impl Freeze for VolumeShape
impl RefUnwindSafe for VolumeShape
impl Send for VolumeShape
impl Sync for VolumeShape
impl Unpin for VolumeShape
impl UnsafeUnpin for VolumeShape
impl UnwindSafe for VolumeShape
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more