Struct tugger_debian::ControlField [−][src]
pub struct ControlField<'a> { /* fields omitted */ }
Expand description
A field in a control file.
Implementations
Construct an instance from a field name and typed value.
pub fn from_string_value(
key: Cow<'a, str>,
value: Cow<'a, str>
) -> Result<Self, ControlError>
pub fn from_string_value(
key: Cow<'a, str>,
value: Cow<'a, str>
) -> Result<Self, ControlError>
Construct a field from a named key and string value.
The type of the field value will be derived from the key name.
Unknown keys will be rejected.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for ControlField<'a>
impl<'a> Send for ControlField<'a>
impl<'a> Sync for ControlField<'a>
impl<'a> Unpin for ControlField<'a>
impl<'a> UnwindSafe for ControlField<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more