#[non_exhaustive]pub struct End {
pub(crate) trailing_input: TrailingInput,
}Expand description
The end of input.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.trailing_input: TrailingInputHow to handle any input after this component.
Implementations§
Source§impl End
impl End
Sourcepub const fn default() -> Self
pub const fn default() -> Self
Creates a modifier used to represent the end of input, not allowing any trailing input (i.e. the input must be fully consumed).
This function exists since Default::default() cannot be used in a const context.
It may be removed once that becomes possible. As the Default trait is in the
prelude, removing this function in the future will not cause any resolution failures for
the overwhelming majority of users; only users who use #![no_implicit_prelude] will be
affected. As such it will not be considered a breaking change.
Source§impl End
impl End
Sourcepub const fn with_trailing_input(self, trailing_input: TrailingInput) -> Self
pub const fn with_trailing_input(self, trailing_input: TrailingInput) -> Self
Set how to handle any input after this component.
Trait Implementations§
Source§impl Default for End
Creates a modifier used to represent the end of input, not allowing any trailing input (i.e.
the input must be fully consumed).
impl Default for End
Creates a modifier used to represent the end of input, not allowing any trailing input (i.e. the input must be fully consumed).