pub struct TraversalLimits { /* private fields */ }Expand description
Finite resource limits shared by worksheet traversal operations.
Implementations§
Source§impl TraversalLimits
impl TraversalLimits
Sourcepub fn new(
max_rows: u64,
max_columns: u64,
max_cells: u64,
max_output_bytes: u64,
) -> Result<TraversalLimits, Error>
pub fn new( max_rows: u64, max_columns: u64, max_cells: u64, max_output_bytes: u64, ) -> Result<TraversalLimits, Error>
Creates limits, rejecting zero values and values above hard ceilings.
Sourcepub const fn max_columns(self) -> u64
pub const fn max_columns(self) -> u64
Returns the maximum column count.
Sourcepub const fn max_output_bytes(self) -> u64
pub const fn max_output_bytes(self) -> u64
Returns the maximum output byte count.
Trait Implementations§
Source§impl Clone for TraversalLimits
impl Clone for TraversalLimits
Source§fn clone(&self) -> TraversalLimits
fn clone(&self) -> TraversalLimits
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 moreimpl Copy for TraversalLimits
Source§impl Debug for TraversalLimits
impl Debug for TraversalLimits
Source§impl Default for TraversalLimits
impl Default for TraversalLimits
Source§fn default() -> TraversalLimits
fn default() -> TraversalLimits
Returns the “default value” for a type. Read more
impl Eq for TraversalLimits
Source§impl PartialEq for TraversalLimits
impl PartialEq for TraversalLimits
impl StructuralPartialEq for TraversalLimits
Auto Trait Implementations§
impl Freeze for TraversalLimits
impl RefUnwindSafe for TraversalLimits
impl Send for TraversalLimits
impl Sync for TraversalLimits
impl Unpin for TraversalLimits
impl UnsafeUnpin for TraversalLimits
impl UnwindSafe for TraversalLimits
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Checks if this value is equivalent to the given key. Read more
§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.