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, ) -> HashMap<K, V, BuildHasherDefault<AHasher>, BumpWrapper<'_>>
pub fn new_hashset<T>( &self, ) -> HashSet<T, BuildHasherDefault<AHasher>, BumpWrapper<'_>>
Auto Trait Implementations§
impl !Freeze for Session
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