Struct valkyrie_ast::GuaranteeNode
source · pub struct GuaranteeNode {
pub generics: Vec<IdentifierNode>,
pub return_type: Option<ExpressionNode>,
pub effect_type: Option<ExpressionNode>,
pub span: Range<u32>,
}Expand description
vow T {} fun f() { return T }
vouch T, U {
return T
effect [Asynchronous, Logging]
}
Fields§
§generics: Vec<IdentifierNode>The generics of this guarantee
return_type: Option<ExpressionNode>The return type of this guarantee
effect_type: Option<ExpressionNode>The effects of this guarantee
span: Range<u32>The body of this guarantee
Trait Implementations§
source§impl Clone for GuaranteeNode
impl Clone for GuaranteeNode
source§fn clone(&self) -> GuaranteeNode
fn clone(&self) -> GuaranteeNode
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 GuaranteeNode
impl Debug for GuaranteeNode
source§impl Hash for GuaranteeNode
impl Hash for GuaranteeNode
source§impl PartialEq for GuaranteeNode
impl PartialEq for GuaranteeNode
source§fn eq(&self, other: &GuaranteeNode) -> bool
fn eq(&self, other: &GuaranteeNode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for GuaranteeNode
impl StructuralPartialEq for GuaranteeNode
Auto Trait Implementations§
impl RefUnwindSafe for GuaranteeNode
impl Send for GuaranteeNode
impl Sync for GuaranteeNode
impl Unpin for GuaranteeNode
impl UnwindSafe for GuaranteeNode
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