pub struct NxCodec;Expand description
Decoder and inspector for Siemens NX .prt files.
Trait Implementations§
Source§impl Codec for NxCodec
impl Codec for NxCodec
Source§fn detect(&self, prefix: &[u8]) -> Confidence
fn detect(&self, prefix: &[u8]) -> Confidence
Judge, from a leading byte prefix, whether this codec applies.
Source§fn inspect(
&self,
reader: &mut dyn ReadSeek,
) -> Result<ContainerSummary, CodecError>
fn inspect( &self, reader: &mut dyn ReadSeek, ) -> Result<ContainerSummary, CodecError>
Enumerate the container’s streams/segments without decoding geometry.
Source§fn decode(
&self,
reader: &mut dyn ReadSeek,
options: &DecodeOptions,
) -> Result<DecodeResult, CodecError>
fn decode( &self, reader: &mut dyn ReadSeek, options: &DecodeOptions, ) -> Result<DecodeResult, CodecError>
Decode the source and report any incomplete or approximate transfer.
impl Copy for NxCodec
Auto Trait Implementations§
impl Freeze for NxCodec
impl RefUnwindSafe for NxCodec
impl Send for NxCodec
impl Sync for NxCodec
impl Unpin for NxCodec
impl UnsafeUnpin for NxCodec
impl UnwindSafe for NxCodec
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