pub struct Recipe { /* private fields */ }Expand description
One independent, validated native declaration document.
A Recipe retains the authored TOML rather than a rendered image. Reading and writing it never looks up fonts or prepares scientific layout.
Implementations§
Source§impl Recipe
impl Recipe
Sourcepub fn build_document(&self) -> Result<RecipeDocument>
pub fn build_document(&self) -> Result<RecipeDocument>
Restore the independent document using its declared default sources.
Sourcepub fn build_document_with<M>(
&self,
bindings: impl BindingArguments<M>,
) -> Result<RecipeDocument>
pub fn build_document_with<M>( &self, bindings: impl BindingArguments<M>, ) -> Result<RecipeDocument>
Restore an independent document, including a mixed document’s explicitly selected composition base and placement steps.
Sourcepub fn build_document_with_operation<M>(
&self,
bindings: impl BindingArguments<M>,
options: &OperationOptions,
) -> Result<RecipeDocument>
pub fn build_document_with_operation<M>( &self, bindings: impl BindingArguments<M>, options: &OperationOptions, ) -> Result<RecipeDocument>
Restore the independent document under one cancellable operation.
Sourcepub fn composition(&self) -> Result<CompositionPlan>
pub fn composition(&self) -> Result<CompositionPlan>
Restore the composition declaration using its default sources.
Sourcepub fn composition_with<M>(
&self,
bindings: impl BindingArguments<M>,
) -> Result<CompositionPlan>
pub fn composition_with<M>( &self, bindings: impl BindingArguments<M>, ) -> Result<CompositionPlan>
Restore the actual base and ordered placements with explicit inputs.
Sourcepub fn composition_with_operation<M>(
&self,
bindings: impl BindingArguments<M>,
options: &OperationOptions,
) -> Result<CompositionPlan>
pub fn composition_with_operation<M>( &self, bindings: impl BindingArguments<M>, options: &OperationOptions, ) -> Result<CompositionPlan>
Restore the composition’s own dependency closure under one operation.
Sourcepub fn placements(&self) -> Result<Vec<Placement>>
pub fn placements(&self) -> Result<Vec<Placement>>
Restore a single ordered placement list without adopting any base input.
Sourcepub fn placements_with<M>(
&self,
bindings: impl BindingArguments<M>,
) -> Result<Vec<Placement>>
pub fn placements_with<M>( &self, bindings: impl BindingArguments<M>, ) -> Result<Vec<Placement>>
Restore a placement list with explicit input replacements.
Sourcepub fn placements_with_operation<M>(
&self,
bindings: impl BindingArguments<M>,
options: &OperationOptions,
) -> Result<Vec<Placement>>
pub fn placements_with_operation<M>( &self, bindings: impl BindingArguments<M>, options: &OperationOptions, ) -> Result<Vec<Placement>>
Restore only the placement list’s dependencies under one operation.
Source§impl Recipe
impl Recipe
Sourcepub fn bindings(&self) -> &[BindingInfo]
pub fn bindings(&self) -> &[BindingInfo]
Ordered logical sources and their actual input requirements.
Sourcepub fn warnings(&self) -> &[RecipeWarning]
pub fn warnings(&self) -> &[RecipeWarning]
Current unresolved original selections without reading any data.
Sourcepub fn build(&self) -> Result<RecipeFigure>
pub fn build(&self) -> Result<RecipeFigure>
Restore the native figure from the declared default sources.
Sourcepub fn build_with<M>(
&self,
bindings: impl BindingArguments<M>,
) -> Result<RecipeFigure>
pub fn build_with<M>( &self, bindings: impl BindingArguments<M>, ) -> Result<RecipeFigure>
Restore from homogeneous inputs or a heterogeneous registry.
Sourcepub fn build_with_operation<M>(
&self,
bindings: impl BindingArguments<M>,
options: &OperationOptions,
) -> Result<RecipeFigure>
pub fn build_with_operation<M>( &self, bindings: impl BindingArguments<M>, options: &OperationOptions, ) -> Result<RecipeFigure>
Restore from the chosen inputs under a cancellable operation.
Sourcepub fn check_with<M>(&self, bindings: impl BindingArguments<M>) -> Result<()>
pub fn check_with<M>(&self, bindings: impl BindingArguments<M>) -> Result<()>
Check using explicit in-memory replacements.
Sourcepub fn check_with_operation<M>(
&self,
bindings: impl BindingArguments<M>,
options: &OperationOptions,
) -> Result<()>
pub fn check_with_operation<M>( &self, bindings: impl BindingArguments<M>, options: &OperationOptions, ) -> Result<()>
Validate actual adopted inputs and font-independent scientific preparation.
Sourcepub fn add_binding(
&mut self,
name: &str,
source: impl BindingSourceInput,
) -> Result<()>
pub fn add_binding( &mut self, name: &str, source: impl BindingSourceInput, ) -> Result<()>
Declare an independent logical binding with an optional default.
Sourcepub fn set_binding_source(
&mut self,
name: &str,
source: impl BindingSourceInput,
) -> Result<()>
pub fn set_binding_source( &mut self, name: &str, source: impl BindingSourceInput, ) -> Result<()>
Replace the entire default without reading it.
Sourcepub fn rename_binding(&mut self, old: &str, new: &str) -> Result<()>
pub fn rename_binding(&mut self, old: &str, new: &str) -> Result<()>
Change one binding name and all of its actual references.
Sourcepub fn set_selector(
&mut self,
role: &str,
selector: impl Into<BindingSelector>,
) -> Result<()>
pub fn set_selector( &mut self, role: &str, selector: impl Into<BindingSelector>, ) -> Result<()>
Replace one role’s selection, keeping its source and other settings.
Source§impl Recipe
impl Recipe
Sourcepub fn set_output(&mut self, declaration: OutputDeclaration) -> Result<()>
pub fn set_output(&mut self, declaration: OutputDeclaration) -> Result<()>
Set an explicit output declaration, retaining the other action’s settings.
Sourcepub fn run(&self) -> Result<RunResult>
pub fn run(&self) -> Result<RunResult>
Execute the explicitly declared action using local default inputs.
Sourcepub fn run_with(&self, options: RunOptions<'_>) -> Result<RunResult>
pub fn run_with(&self, options: RunOptions<'_>) -> Result<RunResult>
Execute one action with optional call-local source and destination overrides.
Sourcepub fn run_with_operation(
&self,
options: RunOptions<'_>,
operation: &OperationOptions,
) -> Result<RunResult>
pub fn run_with_operation( &self, options: RunOptions<'_>, operation: &OperationOptions, ) -> Result<RunResult>
Execute the selected action under one cancellable operation.
Source§impl Recipe
impl Recipe
Sourcepub fn style(&self) -> Result<Self>
pub fn style(&self) -> Result<Self>
Project the declared visual scope without resolving observation bindings.
Sourcepub fn style_with_operation(&self, options: &OperationOptions) -> Result<Self>
pub fn style_with_operation(&self, options: &OperationOptions) -> Result<Self>
Project the visual scope under one cancellable operation.
Sourcepub fn style_in(&self, owner: impl Into<PanelPath>) -> Result<Self>
pub fn style_in(&self, owner: impl Into<PanelPath>) -> Result<Self>
Project one actual native grid panel’s style, including its effective inherited theme. The address may be its name or its original anchor.
Sourcepub fn style_in_with_operation(
&self,
owner: impl Into<PanelPath>,
options: &OperationOptions,
) -> Result<Self>
pub fn style_in_with_operation( &self, owner: impl Into<PanelPath>, options: &OperationOptions, ) -> Result<Self>
Project a selected visual owner under one cancellable operation.
Source§impl Recipe
impl Recipe
Sourcepub fn template_tasks() -> Vec<String>
pub fn template_tasks() -> Vec<String>
The current template tasks, including visual and document scopes.
Sourcepub fn template_modes(task: &str) -> Result<Vec<&'static str>>
pub fn template_modes(task: &str) -> Result<Vec<&'static str>>
Input modes of this task. An empty list indicates a document or visual task that does not take an input mode.
Source§impl Recipe
impl Recipe
Sourcepub fn read(path: impl AsRef<Path>) -> Result<Self>
pub fn read(path: impl AsRef<Path>) -> Result<Self>
Read a versioned recipe from a real local TOML file.
Sourcepub fn read_with_operation(
path: impl AsRef<Path>,
options: &OperationOptions,
) -> Result<Self>
pub fn read_with_operation( path: impl AsRef<Path>, options: &OperationOptions, ) -> Result<Self>
Read and validate declarations under one cancellable operation.
Sourcepub fn theme(&self) -> Result<Theme>
pub fn theme(&self) -> Result<Theme>
Restore the independent Theme declaration. No construction context or installed font can change the result.
Sourcepub fn write(&self, path: impl AsRef<Path>) -> Result<()>
pub fn write(&self, path: impl AsRef<Path>) -> Result<()>
Write this declaration to the supplied local TOML path atomically.
Sourcepub fn write_with_operation(
&self,
path: impl AsRef<Path>,
options: &OperationOptions,
) -> Result<()>
pub fn write_with_operation( &self, path: impl AsRef<Path>, options: &OperationOptions, ) -> Result<()>
Write a complete recipe under one cancellable operation.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Recipe
impl Freeze for Recipewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Item>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<Key, Item>>: Freeze,
PhantomData<BindingInfo>: Freeze,
PhantomData<RecipeWarning>: Freeze,
impl Move for Recipe
impl RefUnwindSafe for Recipe
impl Send for Recipe
impl Sync for Recipe
impl Unpin for Recipe
impl UnsafeUnpin for Recipewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Item>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<Key, Item>>: UnsafeUnpin,
PhantomData<BindingInfo>: UnsafeUnpin,
PhantomData<RecipeWarning>: UnsafeUnpin,
impl UnwindSafe for Recipewhere
RawVecInner: UnwindSafe,
NonNull<u8>: UnwindSafe,
Arc<[u8]>: UnwindSafe,
BoxRaw<RawKey>: UnwindSafe,
Arc<str>: UnwindSafe,
&'static str: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.