pub struct Limits { /* private fields */ }Implementations§
Source§impl Limits
impl Limits
pub const RESTRICTIVE: Limits
pub const fn new() -> Self
pub const fn max_string_length(&self) -> &Option<usize>
pub const fn max_executed_stmts(&self) -> &Option<usize>
pub const fn max_statement_stack_height(&self) -> &Option<usize>
pub const fn set_max_string_length(&mut self, len: Option<usize>) -> &mut Self
pub const fn set_max_statement_stack_height( &mut self, v: Option<usize>, ) -> &mut Self
pub const fn set_max_executed_stmts(&mut self, v: Option<usize>) -> &mut Self
pub const fn with_max_string_length(self, len: Option<usize>) -> Self
pub const fn with_max_statement_stack_height(self, v: Option<usize>) -> Self
pub const fn with_max_executed_stmts(self, v: Option<usize>) -> Self
Trait Implementations§
impl Eq for Limits
Source§impl Ord for Limits
impl Ord for Limits
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Limits
impl PartialOrd for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more