pub enum LeapType {
Struct(LeapStruct),
Enum(LeapEnum),
}
Variants§
Struct(LeapStruct)
Enum(LeapEnum)
Implementations§
Source§impl LeapType
impl LeapType
pub fn as_struct(&self) -> Option<&LeapStruct>
pub fn as_enum(&self) -> Option<&LeapEnum>
pub fn is_struct(&self) -> bool
pub fn is_enum(&self) -> bool
pub fn to_aliased( &self, aliases: &HashMap<String, String>, ) -> Result<Self, String>
pub fn name(&self) -> &Name
pub fn args(&self) -> &[Name]
pub fn path(&self) -> &str
pub fn set_path(&mut self, path: String)
pub fn position(&self) -> &Position
pub fn expand_args( &self, applied_args: &HashMap<&Name, &ValueType>, ) -> Vec<ValueType>
pub fn apply_args(&self, args: &[ValueType]) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LeapType
impl RefUnwindSafe for LeapType
impl Send for LeapType
impl Sync for LeapType
impl Unpin for LeapType
impl UnwindSafe for LeapType
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