pub struct ContextAssembler;Implementations§
Source§impl ContextAssembler
impl ContextAssembler
Sourcepub fn assemble(
fragments: Vec<ContextFragment>,
budget: &mut TokenBudget,
) -> Result<RenderedContext>
pub fn assemble( fragments: Vec<ContextFragment>, budget: &mut TokenBudget, ) -> Result<RenderedContext>
Pack the fragments into the remaining budget, highest priority first. Returns the fragments that fit, in the order they were originally given (priority is used for eviction, not reordering).
Auto Trait Implementations§
impl Freeze for ContextAssembler
impl RefUnwindSafe for ContextAssembler
impl Send for ContextAssembler
impl Sync for ContextAssembler
impl Unpin for ContextAssembler
impl UnsafeUnpin for ContextAssembler
impl UnwindSafe for ContextAssembler
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