pub enum Definable {
RuleDeclaration(RuleLabel),
RuleDefinition(Rule),
TypeStatement(TypeStatement),
}Variants§
Implementations§
source§impl Definable
impl Definable
pub fn into_type_statement(self) -> TypeStatement
Trait Implementations§
source§impl From<TypeStatement> for Definable
impl From<TypeStatement> for Definable
source§fn from(x: TypeStatement) -> Self
fn from(x: TypeStatement) -> Self
Converts to this type from the input type.
source§impl PartialEq for Definable
impl PartialEq for Definable
source§impl Validatable for Definable
impl Validatable for Definable
impl Eq for Definable
impl StructuralEq for Definable
impl StructuralPartialEq for Definable
Auto Trait Implementations§
impl RefUnwindSafe for Definable
impl Send for Definable
impl Sync for Definable
impl Unpin for Definable
impl UnwindSafe for Definable
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