Enum cl_ast::ast::StructKind
source · pub enum StructKind {
Empty,
Tuple(Vec<Ty>),
Struct(Vec<StructMember>),
}
Expand description
Either a Struct’s StructMembers or tuple Types, if present.
Variants§
Trait Implementations§
source§impl Clone for StructKind
impl Clone for StructKind
source§fn clone(&self) -> StructKind
fn clone(&self) -> StructKind
Returns a copy 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 StructKind
impl Debug for StructKind
source§impl Display for StructKind
impl Display for StructKind
source§impl Hash for StructKind
impl Hash for StructKind
source§impl PartialEq for StructKind
impl PartialEq for StructKind
source§fn eq(&self, other: &StructKind) -> bool
fn eq(&self, other: &StructKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StructKind
impl StructuralPartialEq for StructKind
Auto Trait Implementations§
impl Freeze for StructKind
impl RefUnwindSafe for StructKind
impl Send for StructKind
impl Sync for StructKind
impl Unpin for StructKind
impl UnwindSafe for StructKind
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