pub struct TypeStack { /* private fields */ }Implementations§
Source§impl TypeStack
impl TypeStack
pub fn new() -> TypeStack
pub fn push(&mut self, pushable_type: BuiltinTypes)
pub fn pop(&mut self) -> Option<BuiltinTypes>
pub fn peek(self) -> Option<BuiltinTypes>
pub fn peek_level(self, depth: usize) -> Option<BuiltinTypes>
pub fn binop(&mut self, binop: BINOP) -> Option<BuiltinTypes>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeStack
impl RefUnwindSafe for TypeStack
impl Send for TypeStack
impl Sync for TypeStack
impl Unpin for TypeStack
impl UnsafeUnpin for TypeStack
impl UnwindSafe for TypeStack
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