pub struct LeapStruct {
pub name: Name,
pub args: Vec<Name>,
pub props: Vec<Prop>,
pub path: String,
pub position: Position,
}
Fields§
§name: Name
§args: Vec<Name>
§props: Vec<Prop>
§path: String
§position: Position
Implementations§
Source§impl LeapStruct
impl LeapStruct
pub fn to_aliased( &self, aliases: &HashMap<String, String>, ) -> Result<Self, String>
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
pub fn expand_args( &self, applied_args: &HashMap<&Name, &ValueType>, ) -> Vec<ValueType>
Trait Implementations§
Source§impl Debug for LeapStruct
impl Debug for LeapStruct
Auto Trait Implementations§
impl Freeze for LeapStruct
impl RefUnwindSafe for LeapStruct
impl Send for LeapStruct
impl Sync for LeapStruct
impl Unpin for LeapStruct
impl UnwindSafe for LeapStruct
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