pub struct Session { /* private fields */ }
Implementations§
source§impl Session
impl Session
pub fn new() -> Session
pub fn reset(&mut self)
pub fn get_allocator(&self) -> &Bump
pub fn new_vec<T>(&self) -> SessionVec<'_, T>
pub fn new_string(&self) -> SessionString<'_>
pub fn new_hashmap<K, V>(&self) -> SessionHashMap<'_, K, V>
pub fn new_hashset<T: Hash + Eq>(&self) -> SessionHashSet<'_, T>
Auto Trait Implementations§
impl !RefUnwindSafe for Session
impl Send for Session
impl !Sync for Session
impl Unpin for Session
impl !UnwindSafe for Session
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