pub struct CodeSliceBudget { /* private fields */ }Expand description
Encoded-output ceiling shared by line and symbol slices.
Implementations§
Source§impl CodeSliceBudget
impl CodeSliceBudget
Sourcepub const DEFAULT_OUTPUT_BYTES: u32
pub const DEFAULT_OUTPUT_BYTES: u32
Compatibility-preserving default for callers that omit a byte ceiling.
Sourcepub fn new(output_bytes: u32) -> ServiceResult<Self>
pub fn new(output_bytes: u32) -> ServiceResult<Self>
Validate one requested exact-output ceiling.
§Errors
Returns an error when the limit is zero or above the shared product output ceiling.
Sourcepub const fn output_bytes(self) -> u32
pub const fn output_bytes(self) -> u32
Return the exact adapter-output ceiling.
Trait Implementations§
Source§impl Clone for CodeSliceBudget
impl Clone for CodeSliceBudget
Source§fn clone(&self) -> CodeSliceBudget
fn clone(&self) -> CodeSliceBudget
Returns a duplicate of the value. Read more
1.0.0 · 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 CodeSliceBudget
impl Debug for CodeSliceBudget
Source§impl Default for CodeSliceBudget
impl Default for CodeSliceBudget
Source§impl PartialEq for CodeSliceBudget
impl PartialEq for CodeSliceBudget
impl Copy for CodeSliceBudget
impl Eq for CodeSliceBudget
impl StructuralPartialEq for CodeSliceBudget
Auto Trait Implementations§
impl Freeze for CodeSliceBudget
impl RefUnwindSafe for CodeSliceBudget
impl Send for CodeSliceBudget
impl Sync for CodeSliceBudget
impl Unpin for CodeSliceBudget
impl UnwindSafe for CodeSliceBudget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more