Struct donet_core::parser::ast::Parameter
source · pub struct Parameter {
pub span: Span,
pub data_type: NonMethodDataType,
pub identifier: Option<String>,
pub default_value: Option<TypeValue>,
}
Expand description
Paired with the parameter
production in the Context Free Grammar.
Fields§
§span: Span
§data_type: NonMethodDataType
§identifier: Option<String>
§default_value: Option<TypeValue>
Trait Implementations§
source§impl From<NonMethodType> for Parameter
impl From<NonMethodType> for Parameter
source§fn from(value: NonMethodType) -> Self
fn from(value: NonMethodType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)