#[non_exhaustive]pub enum RuledSide {
Curve {
curve: NodeId,
interval: Interval,
},
Apex(DVec3),
}Expand description
One side of a ruled surface (#402).
A side is read over u in [0, 1]; the two sides of a
SurfaceRelation::Ruled are joined at equal u.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Curve
An atomic Curve3 node run over interval, oriented (a reversed
interval is allowed): u reads the curve at
interval.start + u (interval.end - interval.start).
Apex(DVec3)
Every ruling ends at this point.
Trait Implementations§
impl Copy for RuledSide
Source§impl<'de> Deserialize<'de> for RuledSide
impl<'de> Deserialize<'de> for RuledSide
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuledSide, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuledSide, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RuledSide
impl Serialize for RuledSide
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RuledSide
Auto Trait Implementations§
impl Freeze for RuledSide
impl RefUnwindSafe for RuledSide
impl Send for RuledSide
impl Sync for RuledSide
impl Unpin for RuledSide
impl UnsafeUnpin for RuledSide
impl UnwindSafe for RuledSide
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