pub struct CoinductiveDecl {
pub name: String,
pub constructors: Vec<ConstructorDecl>,
pub corec_name: String,
pub corec_type: Node,
}Expand description
A parsed (coinductive Name (constructor …) …) declaration. Mirrors
InductiveDecl but additionally guarantees the productivity check
(at least one recursive constructor) has succeeded.
Fields§
§name: StringCoinductive type name (must start with an uppercase letter).
constructors: Vec<ConstructorDecl>Ordered list of declared constructors.
corec_name: StringGenerated corecursor name (Name-corec).
corec_type: NodeGenerated corecursor’s dependent Pi-type.
Trait Implementations§
Source§impl Clone for CoinductiveDecl
impl Clone for CoinductiveDecl
Source§fn clone(&self) -> CoinductiveDecl
fn clone(&self) -> CoinductiveDecl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CoinductiveDecl
impl RefUnwindSafe for CoinductiveDecl
impl Send for CoinductiveDecl
impl Sync for CoinductiveDecl
impl Unpin for CoinductiveDecl
impl UnsafeUnpin for CoinductiveDecl
impl UnwindSafe for CoinductiveDecl
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