pub struct TraitItemMethodInfo {
pub attr_sig_info: AttrSigInfo,
pub original: TraitItemMethod,
pub ident_byte_str: LitByteStr,
}
Expand description
Information extracted from trait method.
Fields§
§attr_sig_info: AttrSigInfo
Attributes and signature information.
original: TraitItemMethod
The original AST of the trait item method.
ident_byte_str: LitByteStr
Byte representation of method name, e.g. b"my_method"
.
Implementations§
Source§impl TraitItemMethodInfo
impl TraitItemMethodInfo
Sourcepub fn method_wrapper(&self) -> TokenStream2
pub fn method_wrapper(&self) -> TokenStream2
Generate code that wraps the method.
pub fn generate_serialier( attr_sig_info: &AttrSigInfo, serializer: &SerializerType, ) -> TokenStream2
Source§impl TraitItemMethodInfo
impl TraitItemMethodInfo
pub fn new(original: &mut TraitItemMethod) -> Result<Self>
Auto Trait Implementations§
impl Freeze for TraitItemMethodInfo
impl RefUnwindSafe for TraitItemMethodInfo
impl !Send for TraitItemMethodInfo
impl !Sync for TraitItemMethodInfo
impl Unpin for TraitItemMethodInfo
impl UnwindSafe for TraitItemMethodInfo
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