pub struct CodeSliceDraft { /* private fields */ }Expand description
Unrendered exact slice with its selected adapter-output ceiling.
Implementations§
Source§impl CodeSliceDraft
impl CodeSliceDraft
Sourcepub fn fit_output<F, E, O>(&self, encode: F) -> Result<O, E>
pub fn fit_output<F, E, O>(&self, encode: F) -> Result<O, E>
Encode this slice and enforce the selected adapter-output ceiling.
§Errors
Returns an adapter error when encoding fails or the exact encoded output exceeds the selected byte ceiling.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeSliceDraft
impl RefUnwindSafe for CodeSliceDraft
impl Send for CodeSliceDraft
impl Sync for CodeSliceDraft
impl Unpin for CodeSliceDraft
impl UnwindSafe for CodeSliceDraft
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