pub struct RustImpl {
pub generics: Option<String>,
pub target: String,
pub trait_: Option<String>,
pub where_clause: Option<String>,
pub methods: Vec<RustFunction>,
pub pymethods: bool,
pub source: SourceSpan,
}Expand description
A Rust impl block
Fields§
§generics: Option<String>Generic parameters on the impl block
target: StringThe type being implemented for
trait_: Option<String>Trait being implemented (if any)
where_clause: Option<String>Where clause constraints
methods: Vec<RustFunction>§pymethods: boolWhether this is a #[pymethods] block
source: SourceSpanTrait Implementations§
Source§impl<'de> Deserialize<'de> for RustImpl
impl<'de> Deserialize<'de> for RustImpl
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
Auto Trait Implementations§
impl Freeze for RustImpl
impl RefUnwindSafe for RustImpl
impl Send for RustImpl
impl Sync for RustImpl
impl Unpin for RustImpl
impl UnsafeUnpin for RustImpl
impl UnwindSafe for RustImpl
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