pub struct ChapelParam {
pub name: String,
pub ty: Option<ChapelType>,
pub intent: Option<ChapelIntent>,
pub default: Option<ChapelExpr>,
}Expand description
A Chapel procedure parameter.
Fields§
§name: StringParameter name
ty: Option<ChapelType>Optional type annotation
intent: Option<ChapelIntent>Optional intent
default: Option<ChapelExpr>Optional default value
Implementations§
Source§impl ChapelParam
impl ChapelParam
Sourcepub fn simple(name: impl Into<String>, ty: ChapelType) -> Self
pub fn simple(name: impl Into<String>, ty: ChapelType) -> Self
Simple parameter: name: type
Sourcepub fn with_intent(
name: impl Into<String>,
ty: ChapelType,
intent: ChapelIntent,
) -> Self
pub fn with_intent( name: impl Into<String>, ty: ChapelType, intent: ChapelIntent, ) -> Self
Parameter with intent: intent name: type
Trait Implementations§
Source§impl Clone for ChapelParam
impl Clone for ChapelParam
Source§fn clone(&self) -> ChapelParam
fn clone(&self) -> ChapelParam
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 ChapelParam
impl RefUnwindSafe for ChapelParam
impl Send for ChapelParam
impl Sync for ChapelParam
impl Unpin for ChapelParam
impl UnsafeUnpin for ChapelParam
impl UnwindSafe for ChapelParam
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