pub struct SubDeclaration {
pub name: String,
pub attributes: Vec<Attribute>,
pub modifiers: Vec<String>,
pub parameters: Vec<Parameter>,
pub body: Option<Vec<Statement>>,
pub span: Range<usize>,
}Expand description
Subroutine declaration.
Fields§
§name: StringSubroutine name.
attributes: Vec<Attribute>Attributes.
modifiers: Vec<String>Modifiers.
parameters: Vec<Parameter>Parameters.
body: Option<Vec<Statement>>Subroutine body.
span: Range<usize>Source location.
Trait Implementations§
Source§impl Clone for SubDeclaration
impl Clone for SubDeclaration
Source§fn clone(&self) -> SubDeclaration
fn clone(&self) -> SubDeclaration
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 moreSource§impl Debug for SubDeclaration
impl Debug for SubDeclaration
Source§impl<'de> Deserialize<'de> for SubDeclaration
impl<'de> Deserialize<'de> for SubDeclaration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SubDeclaration
impl PartialEq for SubDeclaration
Source§impl Serialize for SubDeclaration
impl Serialize for SubDeclaration
impl StructuralPartialEq for SubDeclaration
Auto Trait Implementations§
impl Freeze for SubDeclaration
impl RefUnwindSafe for SubDeclaration
impl Send for SubDeclaration
impl Sync for SubDeclaration
impl Unpin for SubDeclaration
impl UnsafeUnpin for SubDeclaration
impl UnwindSafe for SubDeclaration
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