pub enum ComputationSource {
Inline(InlineComputation),
File(String),
Missing,
}Expand description
Where the sanctioned computation lives.
Variants§
Inline(InlineComputation)
A code block in the body under # Computation.
File(String)
The path named by the computation frontmatter key.
Missing
Neither form is present, so the contract is incomplete.
Implementations§
Trait Implementations§
Source§impl Clone for ComputationSource
impl Clone for ComputationSource
Source§fn clone(&self) -> ComputationSource
fn clone(&self) -> ComputationSource
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 ComputationSource
impl Debug for ComputationSource
Source§impl Display for ComputationSource
impl Display for ComputationSource
impl Eq for ComputationSource
Source§impl PartialEq for ComputationSource
impl PartialEq for ComputationSource
impl StructuralPartialEq for ComputationSource
Auto Trait Implementations§
impl Freeze for ComputationSource
impl RefUnwindSafe for ComputationSource
impl Send for ComputationSource
impl Sync for ComputationSource
impl Unpin for ComputationSource
impl UnsafeUnpin for ComputationSource
impl UnwindSafe for ComputationSource
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