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§
Source§impl LeapEnum
impl LeapEnum
pub fn to_aliased( &self, aliases: &HashMap<String, String>, ) -> Result<Self, String>
pub fn expand_args( &self, applied_args: &HashMap<&Name, &ValueType>, ) -> Vec<ValueType>
pub fn map_args<'a>( &'a self, applied_args: &'a [ValueType], ) -> HashMap<&Name, &ValueType>
pub fn apply_args(&self, applied_args: &HashMap<&Name, &ValueType>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LeapEnum
impl RefUnwindSafe for LeapEnum
impl Send for LeapEnum
impl Sync for LeapEnum
impl Unpin for LeapEnum
impl UnwindSafe for LeapEnum
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