pub struct RustTraitImpl {
pub trait_name: String,
pub target_type: String,
pub methods: Vec<TraitMethod>,
pub is_zst: bool,
pub is_opaque: bool,
pub constructor: Option<TraitMethod>,
pub destructor: Option<TraitMethod>,
}Expand description
A Rust trait implementation (impl Trait for Type)
Fields§
§trait_name: StringThe trait being implemented (e.g., “Calculator”)
target_type: StringThe type implementing the trait (e.g., “ZigCalculator”)
methods: Vec<TraitMethod>Methods in this trait implementation
is_zst: boolWhether the target type is a zero-sized type (stateless)
is_opaque: boolWhether the target type is an opaque pointer (stateful) - Phase 2
constructor: Option<TraitMethod>Constructor method for opaque types - Phase 2
destructor: Option<TraitMethod>Destructor method for opaque types - Phase 2
Trait Implementations§
Source§impl Clone for RustTraitImpl
impl Clone for RustTraitImpl
Source§fn clone(&self) -> RustTraitImpl
fn clone(&self) -> RustTraitImpl
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 moreAuto Trait Implementations§
impl Freeze for RustTraitImpl
impl RefUnwindSafe for RustTraitImpl
impl !Send for RustTraitImpl
impl !Sync for RustTraitImpl
impl Unpin for RustTraitImpl
impl UnwindSafe for RustTraitImpl
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