pub struct TypeChecker<'a> { /* private fields */ }Implementations§
Source§impl<'a> TypeChecker<'a>
impl<'a> TypeChecker<'a>
pub fn new(program: &'a Program) -> TypeChecker<'a>
Sourcepub fn with_manifest(
program: &'a Program,
manifest: &'a Manifest,
) -> TypeChecker<'a>
pub fn with_manifest( program: &'a Program, manifest: &'a Manifest, ) -> TypeChecker<'a>
§Fase 38.x.d (D2) — construct a TypeChecker that consults the
supplied manifest when an axonstore declares its schema via
form (b) manifest_ref or form (c) env_var. Form (a) inline
is unaffected (populated identically with or without manifest).
Adopters using axon check --schemas-dir <path> reach this
constructor via axon-rs/src/main.rs::cmd_check. Adopters
embedding the type-checker programmatically pass their own
Manifest (e.g. constructed from load_and_merge_manifests).
When manifest is None, behavior is byte-identical to
Self::new (D5 backwards-compat absolute).
pub fn check(self) -> Vec<TypeError>
Auto Trait Implementations§
impl<'a> Freeze for TypeChecker<'a>
impl<'a> RefUnwindSafe for TypeChecker<'a>
impl<'a> Send for TypeChecker<'a>
impl<'a> Sync for TypeChecker<'a>
impl<'a> Unpin for TypeChecker<'a>
impl<'a> UnsafeUnpin for TypeChecker<'a>
impl<'a> UnwindSafe for TypeChecker<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.