pub enum LangInterfaceItem {
Drop,
Clone,
Handle,
OpEq,
OpCmp,
}Expand description
Lang-item name applied to an interface declaration.
ADR-0080 retired Copy from this enum: posture is declared on the
type with the copy keyword, queried via @ownership(T), and never
dispatched, so it is no longer an interface.
Variants§
Drop
Drop — values may carry custom destructors.
Clone
Clone — values support a clone(self) method producing an
owned duplicate.
Handle
Handle — wraps a non-copyable resource that’s still allowed to
move out of let bindings (linear-type carve-out).
OpEq
Eq — drives == operator desugaring.
OpCmp
Ord — drives </<=/>/>= operator desugaring.
Implementations§
Trait Implementations§
Source§impl Clone for LangInterfaceItem
impl Clone for LangInterfaceItem
Source§fn clone(&self) -> LangInterfaceItem
fn clone(&self) -> LangInterfaceItem
Returns a duplicate of the value. Read more
1.0.0 · 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 LangInterfaceItem
impl Debug for LangInterfaceItem
Source§impl Hash for LangInterfaceItem
impl Hash for LangInterfaceItem
Source§impl PartialEq for LangInterfaceItem
impl PartialEq for LangInterfaceItem
impl Copy for LangInterfaceItem
impl Eq for LangInterfaceItem
impl StructuralPartialEq for LangInterfaceItem
Auto Trait Implementations§
impl Freeze for LangInterfaceItem
impl RefUnwindSafe for LangInterfaceItem
impl Send for LangInterfaceItem
impl Sync for LangInterfaceItem
impl Unpin for LangInterfaceItem
impl UnsafeUnpin for LangInterfaceItem
impl UnwindSafe for LangInterfaceItem
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