pub enum ReturnRule {
Fixed(ResolvedType),
FromArgs(fn(&[ResolvedType]) -> Result<ResolvedType, PlannerError>),
}Variants§
Fixed(ResolvedType)
FromArgs(fn(&[ResolvedType]) -> Result<ResolvedType, PlannerError>)
Trait Implementations§
Source§impl Clone for ReturnRule
impl Clone for ReturnRule
Source§fn clone(&self) -> ReturnRule
fn clone(&self) -> ReturnRule
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 moreAuto Trait Implementations§
impl Freeze for ReturnRule
impl RefUnwindSafe for ReturnRule
impl Send for ReturnRule
impl Sync for ReturnRule
impl Unpin for ReturnRule
impl UnsafeUnpin for ReturnRule
impl UnwindSafe for ReturnRule
Blanket Implementations§
impl<T> Allocation for T
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