Struct ar::Header

source ·
pub struct Header { /* private fields */ }
Expand description

Representation of an archive entry header.

Implementations

Creates a header with the given file identifier and size, and all other fields set to zero.

Creates a header with the given file identifier and all other fields set from the given filesystem metadata.

Returns the file identifier.

Sets the file identifier.

Returns the last modification time in Unix time format.

Sets the last modification time in Unix time format.

Returns the value of the owner’s user ID field.

Sets the value of the owner’s user ID field.

Returns the value of the group’s user ID field.

Returns the value of the group’s user ID field.

Returns the mode bits for this file.

Sets the mode bits for this file.

Returns the length of the file, in bytes.

Sets the length of the file, in bytes.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.