Struct age::IdentityFile[][src]

pub struct IdentityFile { /* fields omitted */ }

A list of identities that has been parsed from some input file.

Implementations

impl IdentityFile[src]

pub fn from_file(filename: String) -> Result<Self>[src]

Parses one or more identities from a file containing valid UTF-8.

pub fn from_buffer<R: BufRead>(data: R) -> Result<Self>[src]

Parses one or more identities from a buffered input containing valid UTF-8.

pub fn into_identities(self) -> Vec<Identity>[src]

Returns the identities in this file.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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