pub enum SectionHeaderOption<'a> {
Comment(Cow<'a, str>),
Hardware(Cow<'a, str>),
OS(Cow<'a, str>),
UserApplication(Cow<'a, str>),
CustomBinary(CustomBinaryOption<'a>),
CustomUtf8(CustomUtf8Option<'a>),
Unknown(UnknownOption<'a>),
}
Expand description
Section Header Block options
Variants§
Comment(Cow<'a, str>)
Comment associated with the current block
Hardware(Cow<'a, str>)
Description of the hardware used to create this section
OS(Cow<'a, str>)
Name of the operating system used to create this section
UserApplication(Cow<'a, str>)
Name of the application used to create this section
CustomBinary(CustomBinaryOption<'a>)
Custom option containing binary octets in the Custom Data portion
CustomUtf8(CustomUtf8Option<'a>)
Custom option containing a UTF-8 string in the Custom Data portion
Unknown(UnknownOption<'a>)
Unknown option
Implementations§
Source§impl<'a> SectionHeaderOption<'a>
impl<'a> SectionHeaderOption<'a>
Sourcepub fn into_owned(self) -> SectionHeaderOption<'static>
pub fn into_owned(self) -> SectionHeaderOption<'static>
Returns a version of self
with all fields converted to owning versions.
Trait Implementations§
Source§impl<'a> Clone for SectionHeaderOption<'a>
impl<'a> Clone for SectionHeaderOption<'a>
Source§fn clone(&self) -> SectionHeaderOption<'a>
fn clone(&self) -> SectionHeaderOption<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for SectionHeaderOption<'a>
impl<'a> Debug for SectionHeaderOption<'a>
Source§impl<'a> PartialEq for SectionHeaderOption<'a>
impl<'a> PartialEq for SectionHeaderOption<'a>
impl<'a> Eq for SectionHeaderOption<'a>
impl<'a> StructuralPartialEq for SectionHeaderOption<'a>
Auto Trait Implementations§
impl<'a> Freeze for SectionHeaderOption<'a>
impl<'a> RefUnwindSafe for SectionHeaderOption<'a>
impl<'a> Send for SectionHeaderOption<'a>
impl<'a> Sync for SectionHeaderOption<'a>
impl<'a> Unpin for SectionHeaderOption<'a>
impl<'a> UnwindSafe for SectionHeaderOption<'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