#[non_exhaustive]pub struct LenientSplit<'a> {
pub yaml: &'a str,
pub body: &'a str,
}Expand description
The result of a tolerant read-only split: see split_lenient.
The fields are public to read, but the type is #[non_exhaustive] so it can
gain a field without breaking callers. Read yaml and body by name.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.yaml: &'a strThe text between the fence lines, without the line break before the closing fence.
body: &'a strEverything after the closing fence line.
Trait Implementations§
Source§impl<'a> Clone for LenientSplit<'a>
impl<'a> Clone for LenientSplit<'a>
Source§impl<'a> Debug for LenientSplit<'a>
impl<'a> Debug for LenientSplit<'a>
impl<'a> Eq for LenientSplit<'a>
Source§impl<'a> PartialEq for LenientSplit<'a>
impl<'a> PartialEq for LenientSplit<'a>
impl<'a> StructuralPartialEq for LenientSplit<'a>
Auto Trait Implementations§
impl<'a> Forget for LenientSplit<'a>
impl<'a> Freeze for LenientSplit<'a>
impl<'a> Move for LenientSplit<'a>
impl<'a> RefUnwindSafe for LenientSplit<'a>
impl<'a> Send for LenientSplit<'a>
impl<'a> Sync for LenientSplit<'a>
impl<'a> Unpin for LenientSplit<'a>
impl<'a> UnsafeUnpin for LenientSplit<'a>
impl<'a> UnwindSafe for LenientSplit<'a>
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