pub struct ExtendStatement {
pub type_name: TypeName,
pub methods: Vec<MethodDef>,
}Expand description
Type extension for adding methods to existing types
Fields§
§type_name: TypeNameThe type being extended (e.g., “Vec”)
methods: Vec<MethodDef>Methods being added to the type
Trait Implementations§
Source§impl Clone for ExtendStatement
impl Clone for ExtendStatement
Source§fn clone(&self) -> ExtendStatement
fn clone(&self) -> ExtendStatement
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 ExtendStatement
impl Debug for ExtendStatement
Source§impl<'de> Deserialize<'de> for ExtendStatement
impl<'de> Deserialize<'de> for ExtendStatement
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 ExtendStatement
impl PartialEq for ExtendStatement
Source§impl Serialize for ExtendStatement
impl Serialize for ExtendStatement
impl StructuralPartialEq for ExtendStatement
Auto Trait Implementations§
impl Freeze for ExtendStatement
impl RefUnwindSafe for ExtendStatement
impl Send for ExtendStatement
impl Sync for ExtendStatement
impl Unpin for ExtendStatement
impl UnsafeUnpin for ExtendStatement
impl UnwindSafe for ExtendStatement
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