pub struct Types { /* private fields */ }Implementations§
Source§impl Types
impl Types
pub fn new() -> Self
pub fn add_type(&mut self, kind: TypeKind) -> Result<bool, ExtendTypesError>
pub fn types(&self) -> impl Iterator<Item = &TypeKind>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, name: &str) -> Option<&TypeKind>
pub fn extend(&mut self, other: Types) -> Result<(), ExtendTypesError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Types
impl RefUnwindSafe for Types
impl Send for Types
impl Sync for Types
impl Unpin for Types
impl UnsafeUnpin for Types
impl UnwindSafe for Types
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