pub struct LeapSpec { /* private fields */ }
Implementations§
Source§impl LeapSpec
impl LeapSpec
pub fn new(types: Vec<LeapType>) -> Self
pub fn iter_type_refs(&self) -> impl Iterator<Item = &LeapType>
pub fn iter_types(&self) -> impl Iterator<Item = LeapTypeHandle>
pub fn join(&mut self, other: LeapSpec)
pub fn get_type_ref(&self, handle: LeapTypeHandle) -> &LeapType
pub fn get_type_mut(&mut self, handle: LeapTypeHandle) -> &mut LeapType
pub fn get_handle_by_name(&self, name: &str) -> Option<LeapTypeHandle>
pub fn get_type_by_name(&self, name: &str) -> Option<&LeapType>
pub fn is_struct_name(&self, name: &str) -> bool
pub fn is_enum_name(&self, name: &str) -> bool
pub fn to_aliased( &self, aliases: &HashMap<String, String>, ) -> Result<Self, String>
pub fn mark_recursive_props(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LeapSpec
impl RefUnwindSafe for LeapSpec
impl Send for LeapSpec
impl Sync for LeapSpec
impl Unpin for LeapSpec
impl UnwindSafe for LeapSpec
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