pub struct SourceLiteralLimits { /* private fields */ }Expand description
Explicit aggregate caps for source literal preflight, before inference.
Implementations§
Source§impl SourceLiteralLimits
impl SourceLiteralLimits
Sourcepub const fn new(
occurrences: NonZeroU64,
diagnostics: NonZeroU64,
bytes: u64,
) -> Self
pub const fn new( occurrences: NonZeroU64, diagnostics: NonZeroU64, bytes: u64, ) -> Self
Set examined occurrences, semantic diagnostics and total lexical bytes. Zero bytes admits only empty payloads, each verified through an EOF probe.
Trait Implementations§
Source§impl Clone for SourceLiteralLimits
impl Clone for SourceLiteralLimits
impl Copy for SourceLiteralLimits
Source§impl Debug for SourceLiteralLimits
impl Debug for SourceLiteralLimits
Source§impl<'de> Deserialize<'de> for SourceLiteralLimits
impl<'de> Deserialize<'de> for SourceLiteralLimits
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 SourceLiteralLimits
impl Freeze for SourceLiteralLimits
impl Move for SourceLiteralLimits
impl RefUnwindSafe for SourceLiteralLimits
impl Send for SourceLiteralLimits
impl Sync for SourceLiteralLimits
impl Unpin for SourceLiteralLimits
impl UnsafeUnpin for SourceLiteralLimitswhere
NonZeroU64Inner: UnsafeUnpin,
impl UnwindSafe for SourceLiteralLimits
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