Struct debian_packaging::control::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 value.
Construct an instance from an iterable of lines.
Each line should not have leading whitespace.
Obtain the value as a &str.
The value’s original file formatting (including newlines and leading whitespace) is included.
Obtain the value as a ControlFieldValue::Simple if possible.
This will fail if the tracked value has multiple lines.
Obtain the value as a ControlFieldValue::Folded.
Obtain the value as a ControlFieldValue::Multiline.
Obtain an iterator of words in the value.
Obtain an iterator of lines in the value.
Leading whitespace from each line is stripped.
Obtain an iterator of comma delimited values in the value.
Whitespace surrounding the comma is trimmed.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
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
Compare self to key and return true if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
