Struct tugger_debian::ControlField [−][src]
A field in a control file.
Implementations
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]
fn clone(&self) -> ControlField<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for ControlField<'a>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,