pub struct Normalizer { /* private fields */ }Expand description
Main normalizer that converts a raw Schema into a SemanticSchema
Implementations§
Source§impl Normalizer
impl Normalizer
pub fn new() -> Self
Sourcepub fn normalize(
self,
schema: &Schema,
) -> Result<SemanticSchema, Vec<NormalizationError>>
pub fn normalize( self, schema: &Schema, ) -> Result<SemanticSchema, Vec<NormalizationError>>
Normalize a raw schema into a semantic schema using the standard pipeline.
Sourcepub fn normalize_with_pipeline(
self,
schema: &Schema,
pipeline: NormalizationPipeline,
) -> Result<SemanticSchema, Vec<NormalizationError>>
pub fn normalize_with_pipeline( self, schema: &Schema, pipeline: NormalizationPipeline, ) -> Result<SemanticSchema, Vec<NormalizationError>>
Normalize a raw schema into a semantic schema using a custom pipeline.
Use PipelineBuilder to configure which stages run, or the convenience
methods NormalizationPipeline::standard() / NormalizationPipeline::for_codegen().
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Normalizer
impl RefUnwindSafe for Normalizer
impl Send for Normalizer
impl Sync for Normalizer
impl Unpin for Normalizer
impl UnsafeUnpin for Normalizer
impl UnwindSafe for Normalizer
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