Struct pyo3_macros_backend::proto_method::MethodProto
source · [−]pub struct MethodProto {
pub name: &'static str,
pub args: &'static [&'static str],
pub proto: &'static str,
pub with_self: bool,
pub with_result: bool,
}
This is supported on crate feature
pyproto
only.Fields
name: &'static str
args: &'static [&'static str]
proto: &'static str
with_self: bool
with_result: bool
Implementations
sourceimpl MethodProto
impl MethodProto
pub const fn new(name: &'static str, proto: &'static str) -> Self
pub const fn args(self, args: &'static [&'static str]) -> MethodProto
pub const fn has_self(self) -> MethodProto
pub const fn no_result(self) -> MethodProto
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MethodProto
impl Send for MethodProto
impl Sync for MethodProto
impl Unpin for MethodProto
impl UnwindSafe for MethodProto
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more