pub enum RoutineBody {
Expression(String),
Query(String),
Statements(Vec<String>),
Block(String),
}Expand description
The routine’s body, in the shape Razeri composed it.
Variants§
Expression(String)
A single expression the function’s value is.
Query(String)
A query whose rows the function returns.
Statements(Vec<String>)
Statements, in order, each without its terminator. How they are separated and how the block around them is opened and closed is the engine’s business.
Block(String)
A procedural block the design supplied already framed. Emit it as it stands, inside whatever this engine wraps a body in.
Trait Implementations§
Source§impl Clone for RoutineBody
impl Clone for RoutineBody
Source§fn clone(&self) -> RoutineBody
fn clone(&self) -> RoutineBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RoutineBody
impl Debug for RoutineBody
impl Eq for RoutineBody
Source§impl PartialEq for RoutineBody
impl PartialEq for RoutineBody
impl StructuralPartialEq for RoutineBody
Auto Trait Implementations§
impl Freeze for RoutineBody
impl RefUnwindSafe for RoutineBody
impl Send for RoutineBody
impl Sync for RoutineBody
impl Unpin for RoutineBody
impl UnsafeUnpin for RoutineBody
impl UnwindSafe for RoutineBody
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