pub enum CompoundKind {
Ref,
Slice,
EnumeratedSlice,
Map,
Channel,
Sender,
Receiver,
VarArgs,
}Variants§
Implementations§
Source§impl CompoundKind
impl CompoundKind
pub fn carries_write_permission(self) -> bool
Sourcepub fn accepts_write_qualifier(self) -> bool
pub fn accepts_write_qualifier(self) -> bool
Whether mut may qualify this kind. A VarArgs accepts it for the
storage a spread hands over, without being a hop that gates elements.
pub fn leaf_name(self) -> &'static str
pub fn from_name(name: &str) -> Option<CompoundKind>
Trait Implementations§
Source§impl Clone for CompoundKind
impl Clone for CompoundKind
impl Copy for CompoundKind
Source§impl Debug for CompoundKind
impl Debug for CompoundKind
impl Eq for CompoundKind
Source§impl Hash for CompoundKind
impl Hash for CompoundKind
Source§impl PartialEq for CompoundKind
impl PartialEq for CompoundKind
impl StructuralPartialEq for CompoundKind
Auto Trait Implementations§
impl Freeze for CompoundKind
impl RefUnwindSafe for CompoundKind
impl Send for CompoundKind
impl Sync for CompoundKind
impl Unpin for CompoundKind
impl UnsafeUnpin for CompoundKind
impl UnwindSafe for CompoundKind
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