pub struct Why3Scope { /* private fields */ }Expand description
Three separate scopes for values, types, and spans.
Implementations§
Source§impl Why3Scope
impl Why3Scope
pub fn new() -> Self
pub fn open(&mut self)
pub fn close(&mut self)
pub fn bind_value(&mut self, ident: Ident)
pub fn bind_values(&mut self, idents: &[Ident])
pub fn bind_type(&mut self, ident: Ident)
pub fn bind_span(&mut self, ident: Ident)
pub fn get_value(&self, ident: Ident) -> String
pub fn get_type(&self, ident: Ident) -> String
pub fn get_span(&self, ident: Ident) -> String
Auto Trait Implementations§
impl Freeze for Why3Scope
impl RefUnwindSafe for Why3Scope
impl Send for Why3Scope
impl Sync for Why3Scope
impl Unpin for Why3Scope
impl UnwindSafe for Why3Scope
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