Skip to main content

StepCodec

Struct StepCodec 

Source
pub struct StepCodec {
    pub options: StepWriteOptions,
}
Expand description

STEP encoder with per-export header options.

Fields§

§options: StepWriteOptions

Header metadata and deterministic writer options.

Trait Implementations§

Source§

impl Clone for StepCodec

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CodecBackend for StepCodec

Source§

const FORMAT: FormatId

Registry format namespace this codec decodes, e.g. "f3d". Read more
Source§

fn detect_impl( &self, ctx: &DecodeContext<'_>, prefix: View<'_>, ) -> Result<Confidence, CodecError>

Judge, from a leading byte prefix, whether this codec applies.
Source§

fn inspect_impl( &self, ctx: &DecodeContext<'_>, root: View<'_>, ) -> Result<ContainerSummary, CodecError>

Enumerate the acquired root view’s streams/segments without decoding geometry. Read more
Source§

fn decode_impl( &self, ctx: &DecodeContext<'_>, root: View<'_>, ) -> Result<Decoded, CodecError>

Decode the acquired root view, reporting incomplete or approximate transfer. Read more
Source§

fn validate_native( _ctx: &DecodeContext<'_>, _ir: &CadIr, ) -> Result<Vec<Finding>, CodecError>

Findings this codec’s own validator reports over its native namespace on a decoded document. Read more
Source§

impl Debug for StepCodec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for StepCodec

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl EncoderBackend for StepCodec

Source§

fn plan_resolved( &self, input: EncodeInput<'_>, target: ResolvedWrite<'_>, ) -> Result<ExportBody, CodecError>

Synthesis-only encoder. An off-catalog STEP source cannot be reproduced because every emitted schema stamps object-identifier arcs.

Source§

const FORMAT: FormatId = <Self as CodecBackend>::FORMAT

Stable output format id, taken from the codec that reads the format.
Source§

const TARGET: Catalog

The domain value: DialectFree or a target::Catalog of this format’s output flavors.
Source§

type Target = Catalog

The domain this backend’s targets come from.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<C> Codec for C
where C: CodecBackend + ?Sized,

Source§

fn id(&self) -> FormatId

Registry format namespace, CodecBackend::FORMAT.
Source§

fn detect( &self, ctx: &DecodeContext<'_>, prefix: View<'_>, ) -> Result<Confidence, CodecError>

Judge, from a leading byte prefix, whether this codec applies.
Source§

fn validate_native( &self, ctx: &DecodeContext<'_>, ir: &CadIr, ) -> Result<Vec<Finding>, CodecError>

Findings this codec reports over its own native namespace, CodecBackend::validate_native.
Source§

fn inspect( &self, reader: &mut dyn ReadSeek, options: &InspectOptions, ) -> Result<ContainerSummary, CodecError>

Inspects the source under its input and resource limits.
Source§

fn decode( &self, reader: &mut dyn ReadSeek, options: &DecodeOptions, ) -> Result<DecodeResult, DecodeFailure>

Decodes the source under its input and resource limits. Read more
Source§

fn decode_with_context( &self, ctx: &DecodeContext<'_>, root: View<'_>, options: &DecodeOptions, ) -> Result<DecodeResult, DecodeFailure>

Decodes an acquired root in the caller’s detection session. The caller finishes the session after this method returns.
Source§

impl<E> Encoder for E
where E: EncoderBackend,

Source§

fn id(&self) -> FormatId

Stable output format id.
Source§

fn targets(&self) -> TargetCatalog

The static catalog of output flavors this encoder can produce. Read more
Source§

fn plan( &self, input: EncodeInput<'_>, request: TargetRequest<'_>, ) -> Result<ExportPlan, CodecError>

Plans one export without writing to the destination.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.