Struct rpm::Header

source ·
pub struct Header<T: Tag> { /* private fields */ }

Implementations§

source§

impl<T> Header<T>
where T: Tag,

source

pub fn entry_is_present(&self, tag: T) -> bool

source

pub fn get_entry_data_as_binary(&self, tag: T) -> Result<&[u8], Error>

source

pub fn get_entry_data_as_string(&self, tag: T) -> Result<&str, Error>

source

pub fn get_entry_data_as_i18n_string(&self, tag: T) -> Result<&str, Error>

source

pub fn get_entry_data_as_u16_array(&self, tag: T) -> Result<Vec<u16>, Error>

source

pub fn get_entry_data_as_u32(&self, tag: T) -> Result<u32, Error>

source

pub fn get_entry_data_as_u32_array(&self, tag: T) -> Result<Vec<u32>, Error>

source

pub fn get_entry_data_as_u64(&self, tag: T) -> Result<u64, Error>

source

pub fn get_entry_data_as_u64_array(&self, tag: T) -> Result<Vec<u64>, Error>

source

pub fn get_entry_data_as_string_array(&self, tag: T) -> Result<&[String], Error>

source§

impl Header<IndexSignatureTag>

source

pub fn builder() -> SignatureHeaderBuilder<Empty>

source

pub fn new_empty() -> Self

source

pub fn clear(&mut self)

Trait Implementations§

source§

impl<T: Debug + Tag> Debug for Header<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Header<IndexSignatureTag>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Header<IndexTag>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: PartialEq + Tag> PartialEq for Header<T>

source§

fn eq(&self, other: &Header<T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T: Tag> StructuralPartialEq for Header<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for Header<T>
where T: RefUnwindSafe,

§

impl<T> Send for Header<T>
where T: Send,

§

impl<T> Sync for Header<T>
where T: Sync,

§

impl<T> Unpin for Header<T>
where T: Unpin,

§

impl<T> UnwindSafe for Header<T>
where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V