pub struct ChapelField {
pub name: String,
pub ty: ChapelType,
pub is_const: bool,
pub default: Option<ChapelExpr>,
}Expand description
A field/member of a record or class.
Fields§
§name: StringField name
ty: ChapelTypeField type
is_const: boolWhether the field is var or const
default: Option<ChapelExpr>Optional default value
Trait Implementations§
Source§impl Clone for ChapelField
impl Clone for ChapelField
Source§fn clone(&self) -> ChapelField
fn clone(&self) -> ChapelField
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 moreAuto Trait Implementations§
impl Freeze for ChapelField
impl RefUnwindSafe for ChapelField
impl Send for ChapelField
impl Sync for ChapelField
impl Unpin for ChapelField
impl UnsafeUnpin for ChapelField
impl UnwindSafe for ChapelField
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