pub struct File<'i> {
pub messages: Vec<Message<'i>>,
}
Available on crate feature
alloc
only.Expand description
Top-level SML type. Holds multiple Messages
.
Fields§
§messages: Vec<Message<'i>>
Vector of Messsages
Trait Implementations§
Source§impl<'i> SmlParse<'i, &'i [u8]> for File<'i>
impl<'i> SmlParse<'i, &'i [u8]> for File<'i>
Source§type Error = ParseError
type Error = ParseError
The error produced if parsing fails or the input contained an error.
Source§impl<'i, ReadErr> SmlParse<'i, Result<&'i [u8], ReadDecodedError<ReadErr>>> for File<'i>where
ReadErr: Debug,
impl<'i, ReadErr> SmlParse<'i, Result<&'i [u8], ReadDecodedError<ReadErr>>> for File<'i>where
ReadErr: Debug,
Source§type Error = ReadParsedError<ReadErr>
type Error = ReadParsedError<ReadErr>
The error produced if parsing fails or the input contained an error.
Source§fn parse_from(
value: Result<&'i [u8], ReadDecodedError<ReadErr>>,
) -> Result<Self, Self::Error>
fn parse_from( value: Result<&'i [u8], ReadDecodedError<ReadErr>>, ) -> Result<Self, Self::Error>
Takes the result of decoding and parses it into the resulting type.
impl<'i> Eq for File<'i>
impl<'i> StructuralPartialEq for File<'i>
Auto Trait Implementations§
impl<'i> Freeze for File<'i>
impl<'i> RefUnwindSafe for File<'i>
impl<'i> Send for File<'i>
impl<'i> Sync for File<'i>
impl<'i> Unpin for File<'i>
impl<'i> UnwindSafe for File<'i>
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