pub struct RevolveAboutEdge {
pub target: ModelingCmdId,
pub edge_id: Option<Uuid>,
pub edge_reference: Option<EdgeSpecifier>,
pub angle: Angle,
pub tolerance: LengthUnit,
pub opposite: Opposite<Angle>,
pub body_type: BodyType,
}Expand description
Command for revolving a solid 2d about a brep edge
Fields§
§target: ModelingCmdIdWhich sketch to revolve. Must be a closed 2D solid.
edge_id: Option<Uuid>The edge to use as the axis of revolution, must be linear and lie in the plane of the solid
edge_reference: Option<EdgeSpecifier>Edge reference to use as the axis of revolution (new API).
If both edge_id and edge_reference are provided, edge_reference takes precedence.
angle: AngleThe signed angle of revolution (in degrees, must be <= 360 in either direction)
tolerance: LengthUnitThe maximum acceptable surface gap computed between the revolution surface joints. Must be positive (i.e. greater than zero).
opposite: Opposite<Angle>Should the revolution also revolve in the opposite direction along the given axis? If so, this specifies its angle.
body_type: BodyTypeShould this extrude create a solid body or a surface?
Implementations§
Source§impl RevolveAboutEdge
impl RevolveAboutEdge
Sourcepub fn builder() -> RevolveAboutEdgeBuilder
pub fn builder() -> RevolveAboutEdgeBuilder
Create an instance of RevolveAboutEdge using the builder syntax
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for RevolveAboutEdge
impl<'arbitrary> Arbitrary<'arbitrary> for RevolveAboutEdge
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for RevolveAboutEdge
impl Clone for RevolveAboutEdge
Source§fn clone(&self) -> RevolveAboutEdge
fn clone(&self) -> RevolveAboutEdge
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RevolveAboutEdge
impl Debug for RevolveAboutEdge
Source§impl<'de> Deserialize<'de> for RevolveAboutEdge
impl<'de> Deserialize<'de> for RevolveAboutEdge
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>,
Source§impl JsonSchema for RevolveAboutEdge
impl JsonSchema for RevolveAboutEdge
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for RevolveAboutEdge
impl PartialEq for RevolveAboutEdge
Source§fn eq(&self, other: &RevolveAboutEdge) -> bool
fn eq(&self, other: &RevolveAboutEdge) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for RevolveAboutEdge
impl Serialize for RevolveAboutEdge
impl StructuralPartialEq for RevolveAboutEdge
Source§impl TS for RevolveAboutEdge
impl TS for RevolveAboutEdge
Source§type WithoutGenerics = RevolveAboutEdge
type WithoutGenerics = RevolveAboutEdge
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = RevolveAboutEdge
type OptionInnerType = RevolveAboutEdge
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
Source§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all. Read moreSource§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export. Read moreSource§fn export_to_string(cfg: &Config) -> Result<String, ExportError>where
Self: 'static,
fn export_to_string(cfg: &Config) -> Result<String, ExportError>where
Self: 'static,
Auto Trait Implementations§
impl Freeze for RevolveAboutEdge
impl RefUnwindSafe for RevolveAboutEdge
impl Send for RevolveAboutEdge
impl Sync for RevolveAboutEdge
impl Unpin for RevolveAboutEdge
impl UnsafeUnpin for RevolveAboutEdge
impl UnwindSafe for RevolveAboutEdge
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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>
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>
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