Struct leap_lang::leaptypes::LeapStruct
source · [−]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
sourceimpl 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 [PropType]
) -> HashMap<&Name, &PropType>
pub fn apply_args(&self, applied_args: &HashMap<&Name, &PropType>) -> Self
pub fn expand_args(
&self,
applied_args: &HashMap<&Name, &PropType>
) -> Vec<PropType>
Trait Implementations
sourceimpl Debug for LeapStruct
impl Debug for LeapStruct
Auto Trait Implementations
impl RefUnwindSafe for LeapStruct
impl Send for LeapStruct
impl Sync for LeapStruct
impl Unpin for LeapStruct
impl UnwindSafe for LeapStruct
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