pub struct SlotDef {
pub name: &'static str,
pub accessor: SlotAccessor,
pub op: Option<SlotOp>,
pub doc: &'static str,
}Expand description
Slot definition entry
Fields§
§name: &'static strMethod name (“init”, “add”, etc.)
accessor: SlotAccessorSlot accessor (which slot field to access)
op: Option<SlotOp>Operation type (for shared slots like RichCompare, binary ops)
doc: &'static strDocumentation string
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SlotDef
impl RefUnwindSafe for SlotDef
impl Send for SlotDef
impl Sync for SlotDef
impl Unpin for SlotDef
impl UnsafeUnpin for SlotDef
impl UnwindSafe for SlotDef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more