pub struct RibCompiler { /* private fields */ }Implementations§
Source§impl RibCompiler
impl RibCompiler
pub fn new(config: RibCompilerConfig) -> RibCompiler
pub fn infer_types( &self, expr: Expr, ) -> Result<InferredExpr, RibCompilationError>
pub fn get_custom_instance_names(&self) -> Vec<String>
pub fn get_component_dependency(&self) -> ComponentDependency
pub fn compile(&self, expr: Expr) -> Result<CompilerOutput, RibCompilationError>
pub fn get_variants(&self) -> Vec<TypeVariant>
pub fn get_enums(&self) -> Vec<TypeEnum>
Trait Implementations§
Source§impl Default for RibCompiler
impl Default for RibCompiler
Source§fn default() -> RibCompiler
fn default() -> RibCompiler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RibCompiler
impl RefUnwindSafe for RibCompiler
impl Send for RibCompiler
impl Sync for RibCompiler
impl Unpin for RibCompiler
impl UnsafeUnpin for RibCompiler
impl UnwindSafe for RibCompiler
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