pub struct Dependency {
pub type_id: TypeId,
pub py_name: String,
pub output_path: &'static Path,
}
Expand description
A python type which is depended upon by other types. This information is required for generating the correct import statements.
Fields§
§type_id: TypeId
Type ID of the rust type
py_name: String
Name of the type in Python
output_path: &'static Path
Path to where the type would be exported. By default a filename is derived from the types
name, which can be customized with #[py(export_to = "..")]
.
This path does not include a base directory.
Implementations§
Source§impl Dependency
impl Dependency
Trait Implementations§
Source§impl Debug for Dependency
impl Debug for Dependency
Source§impl Ord for Dependency
impl Ord for Dependency
Source§fn cmp(&self, other: &Dependency) -> Ordering
fn cmp(&self, other: &Dependency) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Dependency
impl PartialEq for Dependency
Source§impl PartialOrd for Dependency
impl PartialOrd for Dependency
impl Eq for Dependency
impl StructuralPartialEq for Dependency
Auto Trait Implementations§
impl Freeze for Dependency
impl RefUnwindSafe for Dependency
impl Send for Dependency
impl Sync for Dependency
impl Unpin for Dependency
impl UnwindSafe for Dependency
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