Struct forth3::dictionary::DictionaryBump
source · pub(crate) struct DictionaryBump {
pub(crate) start: *mut u8,
pub(crate) cur: *mut u8,
pub(crate) end: *mut u8,
}
Fields§
§start: *mut u8
§cur: *mut u8
§end: *mut u8
Implementations§
source§impl DictionaryBump
impl DictionaryBump
pub fn new(bottom: *mut u8, size: usize) -> Self
pub fn bump_str(&mut self, s: &str) -> Result<FaStr, BumpError>
pub fn bump_u8s(&mut self, n: usize) -> Option<NonNull<u8>>
pub fn bump_u8(&mut self) -> Option<NonNull<u8>>
pub fn bump<T: Sized>(&mut self) -> Result<NonNull<T>, BumpError>
pub fn bump_write<T: Sized>(&mut self, val: T) -> Result<(), BumpError>
pub fn capacity(&self) -> usize
pub fn used(&self) -> usize
Auto Trait Implementations§
impl RefUnwindSafe for DictionaryBump
impl !Send for DictionaryBump
impl !Sync for DictionaryBump
impl Unpin for DictionaryBump
impl UnwindSafe for DictionaryBump
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