#[non_exhaustive]pub struct MethodDecl {
pub name: String,
pub has_signature: bool,
pub attribute_count: usize,
}Expand description
Method declaration HIR payload.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringMethod name.
has_signature: boolWhether the declaration has a signature.
attribute_count: usizeNumber of parsed attributes.
Trait Implementations§
Source§impl Clone for MethodDecl
impl Clone for MethodDecl
Source§fn clone(&self) -> MethodDecl
fn clone(&self) -> MethodDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MethodDecl
impl Debug for MethodDecl
Source§impl PartialEq for MethodDecl
impl PartialEq for MethodDecl
Source§fn eq(&self, other: &MethodDecl) -> bool
fn eq(&self, other: &MethodDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MethodDecl
impl StructuralPartialEq for MethodDecl
Auto Trait Implementations§
impl Freeze for MethodDecl
impl RefUnwindSafe for MethodDecl
impl Send for MethodDecl
impl Sync for MethodDecl
impl Unpin for MethodDecl
impl UnsafeUnpin for MethodDecl
impl UnwindSafe for MethodDecl
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