pub struct LibraryMapping {
pub python_module: String,
pub rust_crate: String,
pub python_version_req: String,
pub rust_crate_version: String,
pub items: HashMap<String, ItemMapping>,
pub features: Vec<String>,
pub confidence: MappingConfidence,
pub provenance: String,
}Expand description
A deterministic mapping from Python library to Rust equivalent.
This is a pure function: f(python_module, python_item) → rust_equivalent No randomness, no learning, no approximation.
Design follows Parnas’s information hiding principle [26].
Fields§
§python_module: StringPython module path (e.g., “pandas”, “numpy.linalg”)
rust_crate: StringRust crate and module path (e.g., “polars”, “ndarray::linalg”)
python_version_req: StringPython version requirement (e.g., “>=3.8” or “*”)
rust_crate_version: StringRust crate version constraint (semver)
items: HashMap<String, ItemMapping>Item-level mappings: Python name → Rust mapping
features: Vec<String>Required Cargo.toml features
confidence: MappingConfidenceMapping confidence level
provenance: StringSource of mapping (documentation URL, RFC, etc.)
Trait Implementations§
Source§impl Clone for LibraryMapping
impl Clone for LibraryMapping
Source§fn clone(&self) -> LibraryMapping
fn clone(&self) -> LibraryMapping
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LibraryMapping
impl Debug for LibraryMapping
Source§impl<'de> Deserialize<'de> for LibraryMapping
impl<'de> Deserialize<'de> for LibraryMapping
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
Source§impl PartialEq for LibraryMapping
impl PartialEq for LibraryMapping
Source§impl Serialize for LibraryMapping
impl Serialize for LibraryMapping
impl StructuralPartialEq for LibraryMapping
Auto Trait Implementations§
impl Freeze for LibraryMapping
impl RefUnwindSafe for LibraryMapping
impl Send for LibraryMapping
impl Sync for LibraryMapping
impl Unpin for LibraryMapping
impl UnwindSafe for LibraryMapping
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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