pub struct Method {
pub function: Function,
pub access: AccessSpecifier,
pub is_const: bool,
pub is_static: bool,
pub is_virtual: bool,
pub operator_kind: Option<CxxOperatorKind>,
}Expand description
A C++ class method with its access level (DECY-200).
Fields§
§function: FunctionThe function definition
access: AccessSpecifierAccess specifier (public/protected/private)
is_const: boolWhether this is a const method
is_static: boolWhether this is a static method
is_virtual: boolWhether this is virtual
operator_kind: Option<CxxOperatorKind>Overloaded operator kind, if this is an operator method (DECY-208)
Trait Implementations§
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Forget for Method
impl Freeze for Method
impl Move for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnsafeUnpin for Method
impl UnwindSafe for Method
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