pub struct ConfigLoader;Expand description
Loads a root synthetic-data document plus its resolved local imports,
producing a single SyntheticFile ready for compilation.
Implementations§
Source§impl ConfigLoader
impl ConfigLoader
Sourcepub fn load(path: &Path) -> Result<SyntheticFile, DiagnosticBag>
pub fn load(path: &Path) -> Result<SyntheticFile, DiagnosticBag>
Reads path, resolves and merges any imports: it declares, and
typed-deserializes the merged document into the role (model or
overrides) the root document declares.
Import resolution happens before the typed parse so a root document
that only becomes complete once its imports are merged in (the
common case — splitting a large tables: map across files) still
validates successfully.
Auto Trait Implementations§
impl Freeze for ConfigLoader
impl RefUnwindSafe for ConfigLoader
impl Send for ConfigLoader
impl Sync for ConfigLoader
impl Unpin for ConfigLoader
impl UnsafeUnpin for ConfigLoader
impl UnwindSafe for ConfigLoader
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
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 more