pub struct LiteralTypingLimits { /* private fields */ }Expand description
Aggregate resource budgets for one literal-typing phase.
Implementations§
Source§impl LiteralTypingLimits
impl LiteralTypingLimits
Sourcepub const fn new(
occurrences: NonZeroU64,
inferred: NonZeroU64,
bytes: u64,
) -> Self
pub const fn new( occurrences: NonZeroU64, inferred: NonZeroU64, bytes: u64, ) -> Self
Bound examined occurrences, novel inferred tuples and total lexical bytes. A zero byte budget admits only empty payloads. Limits never truncate output.
Trait Implementations§
Source§impl Clone for LiteralTypingLimits
impl Clone for LiteralTypingLimits
impl Copy for LiteralTypingLimits
Source§impl Debug for LiteralTypingLimits
impl Debug for LiteralTypingLimits
Source§impl<'de> Deserialize<'de> for LiteralTypingLimits
impl<'de> Deserialize<'de> for LiteralTypingLimits
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for LiteralTypingLimits
impl Freeze for LiteralTypingLimits
impl Move for LiteralTypingLimits
impl RefUnwindSafe for LiteralTypingLimits
impl Send for LiteralTypingLimits
impl Sync for LiteralTypingLimits
impl Unpin for LiteralTypingLimits
impl UnsafeUnpin for LiteralTypingLimitswhere
NonZeroU64Inner: UnsafeUnpin,
impl UnwindSafe for LiteralTypingLimits
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