Struct tugger_debian::ControlField [−][src]
pub struct ControlField<'a> { /* fields omitted */ }A field in a control file.
Implementations
impl<'a> ControlField<'a>[src]
impl<'a> ControlField<'a>[src]pub fn new(name: Cow<'a, str>, value: ControlFieldValue<'a>) -> Self[src]
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>[src]
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.
pub fn write<W: Write>(&self, writer: &mut W) -> Result<()>[src]
Write the contents of this field to a writer.
Trait Implementations
impl<'a> Clone for ControlField<'a>[src]
impl<'a> Clone for ControlField<'a>[src]fn clone(&self) -> ControlField<'a>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for ControlField<'a>
impl<'a> RefUnwindSafe for ControlField<'a>impl<'a> Send for ControlField<'a>
impl<'a> Send for ControlField<'a>impl<'a> Sync for ControlField<'a>
impl<'a> Sync for ControlField<'a>impl<'a> Unpin for ControlField<'a>
impl<'a> Unpin for ControlField<'a>impl<'a> UnwindSafe for ControlField<'a>
impl<'a> UnwindSafe for ControlField<'a>