pub enum Extent {
Blind(NumericInput),
UpToNext,
ThroughAll,
}Expand description
How far one side of a tool goes: a length — an angle, in degrees, for a
revolve — plain or a formula of the part’s parameters, or as far as the
solid it is combined with: up to its next face, or through all of it.
Serialized as {"blind": 20.0}, {"blind": {"formula": "height - 2"}},
"up_to_next" or "through_all".
Variants§
Implementations§
Source§impl Extent
impl Extent
Sourcepub fn blind(amount: impl Into<NumericInput>) -> Self
pub fn blind(amount: impl Into<NumericInput>) -> Self
A side amount far: a number, or a formula’s text.
Sourcepub fn length_mut(&mut self) -> Option<&mut NumericInput>
pub fn length_mut(&mut self) -> Option<&mut NumericInput>
Its length, to change, if it is blind.
Sourcepub fn end(&self, reader: &Reader<'_>) -> GeopResult<End>
pub fn end(&self, reader: &Reader<'_>) -> GeopResult<End>
Where it ends, its length as reader reads the parameters.
Sourcepub fn choices(none: bool) -> Vec<Choice>
pub fn choices(none: bool) -> Vec<Choice>
The ways a side can end, as a dialog offers them — with none for a
side which may not be.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Extent
impl<'de> Deserialize<'de> for Extent
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
impl StructuralPartialEq for Extent
Auto Trait Implementations§
impl Freeze for Extent
impl RefUnwindSafe for Extent
impl Send for Extent
impl Sync for Extent
impl Unpin for Extent
impl UnsafeUnpin for Extent
impl UnwindSafe for Extent
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