#[non_exhaustive]pub struct End {
pub(crate) trailing_input: TrailingInput,
}formatting or parsing only.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).
impl Copy for End
impl StructuralPartialEq for End
impl TrivialClone for End
Auto Trait Implementations§
impl Freeze for End
impl RefUnwindSafe for End
impl Send for End
impl Sync for End
impl Unpin for End
impl UnwindSafe for End
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize = _
#[doc(hidden)]const SIZE: usize = _
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize = _
#[doc(hidden)]const ALIGN: usize = _
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment = _
#[doc(hidden)]const ALIGNMENT: Alignment = _
ptr_alignment_type)Source§#[doc(hidden)]const IS_ZST: bool = _
#[doc(hidden)]const IS_ZST: bool = _
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout = _
#[doc(hidden)]const LAYOUT: Layout = _
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize = _
#[doc(hidden)]const MAX_SLICE_LEN: usize = _
sized_type_properties)[Self]. Read more