pub enum FunctionBlockBody {
Sfc(Sfc),
Statements(Statements),
Empty(),
}Variants§
Sfc(Sfc)
Statements(Statements)
Empty()
A function block that has no body (and is therefore no known type).
This type is not strictly valid, but highly useful and can be detected with a semantic rule.
Implementations§
Source§impl FunctionBlockBody
impl FunctionBlockBody
pub fn stmts(stmts: Vec<StmtKind>) -> FunctionBlockBody
pub fn sfc(networks: Vec<Network>) -> FunctionBlockBody
pub fn empty() -> FunctionBlockBody
Trait Implementations§
Source§impl Acceptor for FunctionBlockBody
impl Acceptor for FunctionBlockBody
Source§impl Clone for FunctionBlockBody
impl Clone for FunctionBlockBody
Source§fn clone(&self) -> FunctionBlockBody
fn clone(&self) -> FunctionBlockBody
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 FunctionBlockBody
impl Debug for FunctionBlockBody
Source§impl PartialEq for FunctionBlockBody
impl PartialEq for FunctionBlockBody
impl StructuralPartialEq for FunctionBlockBody
Auto Trait Implementations§
impl Freeze for FunctionBlockBody
impl RefUnwindSafe for FunctionBlockBody
impl Send for FunctionBlockBody
impl Sync for FunctionBlockBody
impl Unpin for FunctionBlockBody
impl UnwindSafe for FunctionBlockBody
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