pub struct TypeFlagRaw(/* private fields */);
Implementations§
Source§impl TypeFlagRaw
impl TypeFlagRaw
Sourcepub fn try_to_type_flag(self) -> Result<TypeFlag, InvalidTypeFlagError>
pub fn try_to_type_flag(self) -> Result<TypeFlag, InvalidTypeFlagError>
Tries to parse the underlying value as TypeFlag
. This fails if the
Tar file is corrupt and the type is invalid.
Trait Implementations§
Source§impl Clone for TypeFlagRaw
impl Clone for TypeFlagRaw
Source§fn clone(&self) -> TypeFlagRaw
fn clone(&self) -> TypeFlagRaw
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TypeFlagRaw
impl Debug for TypeFlagRaw
Source§impl PartialEq for TypeFlagRaw
impl PartialEq for TypeFlagRaw
Source§impl PartialOrd for TypeFlagRaw
impl PartialOrd for TypeFlagRaw
Source§impl TryFrom<TypeFlagRaw> for TypeFlag
impl TryFrom<TypeFlagRaw> for TypeFlag
Source§type Error = InvalidTypeFlagError
type Error = InvalidTypeFlagError
The type returned in the event of a conversion error.
impl Copy for TypeFlagRaw
impl Eq for TypeFlagRaw
impl StructuralPartialEq for TypeFlagRaw
Auto Trait Implementations§
impl Freeze for TypeFlagRaw
impl RefUnwindSafe for TypeFlagRaw
impl Send for TypeFlagRaw
impl Sync for TypeFlagRaw
impl Unpin for TypeFlagRaw
impl UnwindSafe for TypeFlagRaw
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more