pub struct RosettaStone { /* private fields */ }Expand description
Main converter implementing the Rosetta Stone pattern
Implementations§
§impl RosettaStone
impl RosettaStone
pub fn new() -> Self
pub fn new() -> Self
Create a new Rosetta Stone converter with default options
pub fn with_options(options: ConversionOptions) -> Self
pub fn with_options(options: ConversionOptions) -> Self
Create with custom options
pub fn inspect<P: AsRef<Path>>(&self, path: P) -> Result<InspectionReport>
pub fn inspect<P: AsRef<Path>>(&self, path: P) -> Result<InspectionReport>
Inspect a model file (Genchi Genbutsu - go and see)
§Errors
Returns error if file cannot be read or format is unknown
pub fn validate<P: AsRef<Path>>(&self, path: P) -> Result<ValidationReport>
pub fn validate<P: AsRef<Path>>(&self, path: P) -> Result<ValidationReport>
Validate a model file for physics constraints (GH-175, PMAT-180)
Checks per APR-SPEC 10.9:
- NaN detection (corruption indicator)
- Inf detection (overflow indicator)
- All-zeros detection (uninitialized weights)
§Errors
Returns error if file cannot be read or format is unknown
pub fn convert<P: AsRef<Path>, Q: AsRef<Path>>(
&self,
source: P,
target: Q,
options: Option<ConversionOptions>,
) -> Result<ConversionReport>
pub fn convert<P: AsRef<Path>, Q: AsRef<Path>>( &self, source: P, target: Q, options: Option<ConversionOptions>, ) -> Result<ConversionReport>
pub fn chain<P: AsRef<Path>>(
&self,
source: P,
chain: &[FormatType],
work_dir: &Path,
) -> Result<Vec<ConversionReport>>
pub fn chain<P: AsRef<Path>>( &self, source: P, chain: &[FormatType], work_dir: &Path, ) -> Result<Vec<ConversionReport>>
pub fn verify_roundtrip<P: AsRef<Path>>(
&self,
source: P,
intermediate: FormatType,
) -> Result<VerificationReport>
pub fn verify_roundtrip<P: AsRef<Path>>( &self, source: P, intermediate: FormatType, ) -> Result<VerificationReport>
Trait Implementations§
Source§impl Debug for RosettaStone
impl Debug for RosettaStone
Auto Trait Implementations§
impl Freeze for RosettaStone
impl RefUnwindSafe for RosettaStone
impl Send for RosettaStone
impl Sync for RosettaStone
impl Unpin for RosettaStone
impl UnsafeUnpin for RosettaStone
impl UnwindSafe for RosettaStone
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
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