Struct debian::package::ControlParagraph [] [src]

pub struct ControlParagraph {
    // some fields omitted
}

A paragraph consisting of multiple entries of type ControlEntry.

Methods

impl ControlParagraph
[src]

fn new() -> ControlParagraph

fn add_entry(&mut self, key: &str, val: String)

Append an entry at the end of the paragraph.

fn update_entry(&mut self, key: &str, val: String) -> bool

Update or append an entry in the paragraph, returning true if the entry was found and replaced, false if appended.

fn has_entry(&self, key: &str) -> bool

Check if an entry exists in the paragraph

fn get_entry(&self, key: &str) -> Option<&str>

Get the value of an entry in the paragraph

Trait Implementations

impl Clone for ControlParagraph
[src]

fn clone(&self) -> ControlParagraph

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for ControlParagraph
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.