pub struct DeclarationCollector { /* private fields */ }Expand description
DeclarationCollector
Mutable collection phase before a snapshot is sealed.
Implementations§
Source§impl DeclarationCollector
impl DeclarationCollector
Sourcepub fn push(&mut self, declaration: AllocationDeclaration)
pub fn push(&mut self, declaration: AllocationDeclaration)
Add one allocation declaration.
Sourcepub fn seal(self) -> Result<DeclarationSnapshot, DeclarationSnapshotError>
pub fn seal(self) -> Result<DeclarationSnapshot, DeclarationSnapshotError>
Seal collected declarations into a duplicate-free snapshot.
Trait Implementations§
Source§impl Clone for DeclarationCollector
impl Clone for DeclarationCollector
Source§fn clone(&self) -> DeclarationCollector
fn clone(&self) -> DeclarationCollector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeclarationCollector
impl Debug for DeclarationCollector
Source§impl Default for DeclarationCollector
impl Default for DeclarationCollector
Source§fn default() -> DeclarationCollector
fn default() -> DeclarationCollector
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeclarationCollector
impl RefUnwindSafe for DeclarationCollector
impl Send for DeclarationCollector
impl Sync for DeclarationCollector
impl Unpin for DeclarationCollector
impl UnsafeUnpin for DeclarationCollector
impl UnwindSafe for DeclarationCollector
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