pub struct LeapEnum {
pub name: Name,
pub args: Vec<Name>,
pub variants: Vec<Prop>,
pub path: String,
pub position: Position,
}
Fields
name: Name
args: Vec<Name>
variants: Vec<Prop>
path: String
position: Position
Implementations
sourceimpl LeapEnum
impl LeapEnum
pub fn to_aliased(
&self,
aliases: &HashMap<String, String>
) -> Result<Self, String>
pub fn expand_args(
&self,
applied_args: &HashMap<&Name, &PropType>
) -> Vec<PropType>
pub fn map_args<'a>(
&'a self,
applied_args: &'a [PropType]
) -> HashMap<&Name, &PropType>
pub fn apply_args(&self, applied_args: &HashMap<&Name, &PropType>) -> Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LeapEnum
impl Send for LeapEnum
impl Sync for LeapEnum
impl Unpin for LeapEnum
impl UnwindSafe for LeapEnum
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more