pub struct Program<M: Model, B: Backend> { /* private fields */ }Expand description
The main application runner.
Implementations§
Source§impl<M: Model, B: Backend> Program<M, B>
impl<M: Model, B: Backend> Program<M, B>
Sourcepub fn new(model: M, backend: B) -> Result<Self>
pub fn new(model: M, backend: B) -> Result<Self>
Create a new program with the given model and backend.
Sourcepub fn with_options(self, options: ProgramOptions) -> Self
pub fn with_options(self, options: ProgramOptions) -> Self
Override the default program options.
Sourcepub fn ontology(&self) -> &OntologyRegistry
pub fn ontology(&self) -> &OntologyRegistry
Access the ontology registry.
Auto Trait Implementations§
impl<M, B> Freeze for Program<M, B>
impl<M, B> RefUnwindSafe for Program<M, B>where
M: RefUnwindSafe,
B: RefUnwindSafe,
impl<M, B> Send for Program<M, B>
impl<M, B> Sync for Program<M, B>
impl<M, B> Unpin for Program<M, B>
impl<M, B> UnsafeUnpin for Program<M, B>where
M: UnsafeUnpin,
B: UnsafeUnpin,
impl<M, B> UnwindSafe for Program<M, B>where
M: UnwindSafe,
B: UnwindSafe,
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