⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here
pub struct Proto {
    pub name: &'static str,
    module: &'static str,
    pub methods: &'static [MethodProto],
    pub py_methods: &'static [PyMethod],
    slot_defs: &'static [SlotDef],
}
This is supported on crate feature pyproto only.
Expand description

Predicates for #[pyproto].

Fields

name: &'static str

The name of this protocol. E.g., Iter.

module: &'static str

The path to the module which contains this proto implementation.

methods: &'static [MethodProto]

Trait which stores the slots Trait method which accesses the slots. All methods.

py_methods: &'static [PyMethod]

All methods registered as normal methods like #[pymethods].

slot_defs: &'static [SlotDef]

All methods registered to the slot table.

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.