pub struct VersionFlags { /* private fields */ }Expand description
The version flags represents the options that are supported in the library and the EXR file.
Implementations§
Source§impl VersionFlags
impl VersionFlags
Sourcepub const TILED: VersionFlags
pub const TILED: VersionFlags
File is tiled
Sourcepub const LONG_NAMES: VersionFlags
pub const LONG_NAMES: VersionFlags
File contains long attribute or channel names
Sourcepub const NON_IMAGE: VersionFlags
pub const NON_IMAGE: VersionFlags
File has at least one part which is not a regular scanline image or regular tiled image (that is, it is a deep format)
Sourcepub const MULTI_PART_FILE: VersionFlags
pub const MULTI_PART_FILE: VersionFlags
File has multiple parts
Sourcepub const ALL: VersionFlags
pub const ALL: VersionFlags
Bitwise OR of all known flags
Sourcepub const fn empty() -> VersionFlags
pub const fn empty() -> VersionFlags
Returns an empty set of flags
Sourcepub const fn all() -> VersionFlags
pub const fn all() -> VersionFlags
Returns the set containing all flags.
Sourcepub fn from_bits(bits: i32) -> Option<VersionFlags>
pub fn from_bits(bits: i32) -> Option<VersionFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: i32) -> VersionFlags
pub const fn from_bits_truncate(bits: i32) -> VersionFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: i32) -> VersionFlags
pub const unsafe fn from_bits_unchecked(bits: i32) -> VersionFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: VersionFlags) -> bool
pub const fn intersects(&self, other: VersionFlags) -> bool
Returns true if there are flags common to both self and other.
Sourcepub const fn contains(&self, other: VersionFlags) -> bool
pub const fn contains(&self, other: VersionFlags) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: VersionFlags)
pub fn insert(&mut self, other: VersionFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: VersionFlags)
pub fn remove(&mut self, other: VersionFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: VersionFlags)
pub fn toggle(&mut self, other: VersionFlags)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: VersionFlags, value: bool)
pub fn set(&mut self, other: VersionFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Source§impl VersionFlags
impl VersionFlags
Sourcepub fn supports_flags(&self) -> bool
pub fn supports_flags(&self) -> bool
The flag object is supported by the bound OpenEXR library.
Trait Implementations§
Source§impl Binary for VersionFlags
impl Binary for VersionFlags
Source§impl BitAnd for VersionFlags
impl BitAnd for VersionFlags
Source§fn bitand(self, other: VersionFlags) -> VersionFlags
fn bitand(self, other: VersionFlags) -> VersionFlags
Returns the intersection between the two sets of flags.
Source§type Output = VersionFlags
type Output = VersionFlags
& operator.Source§impl BitAndAssign for VersionFlags
impl BitAndAssign for VersionFlags
Source§fn bitand_assign(&mut self, other: VersionFlags)
fn bitand_assign(&mut self, other: VersionFlags)
Disables all flags disabled in the set.
Source§impl BitOr for VersionFlags
impl BitOr for VersionFlags
Source§fn bitor(self, other: VersionFlags) -> VersionFlags
fn bitor(self, other: VersionFlags) -> VersionFlags
Returns the union of the two sets of flags.
Source§type Output = VersionFlags
type Output = VersionFlags
| operator.Source§impl BitOrAssign for VersionFlags
impl BitOrAssign for VersionFlags
Source§fn bitor_assign(&mut self, other: VersionFlags)
fn bitor_assign(&mut self, other: VersionFlags)
Adds the set of flags.
Source§impl BitXor for VersionFlags
impl BitXor for VersionFlags
Source§fn bitxor(self, other: VersionFlags) -> VersionFlags
fn bitxor(self, other: VersionFlags) -> VersionFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = VersionFlags
type Output = VersionFlags
^ operator.Source§impl BitXorAssign for VersionFlags
impl BitXorAssign for VersionFlags
Source§fn bitxor_assign(&mut self, other: VersionFlags)
fn bitxor_assign(&mut self, other: VersionFlags)
Toggles the set of flags.
Source§impl Clone for VersionFlags
impl Clone for VersionFlags
Source§fn clone(&self) -> VersionFlags
fn clone(&self) -> VersionFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VersionFlags
impl Debug for VersionFlags
Source§impl Extend<VersionFlags> for VersionFlags
impl Extend<VersionFlags> for VersionFlags
Source§fn extend<T: IntoIterator<Item = VersionFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = VersionFlags>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl FromIterator<VersionFlags> for VersionFlags
impl FromIterator<VersionFlags> for VersionFlags
Source§fn from_iter<T: IntoIterator<Item = VersionFlags>>(iterator: T) -> VersionFlags
fn from_iter<T: IntoIterator<Item = VersionFlags>>(iterator: T) -> VersionFlags
Source§impl Hash for VersionFlags
impl Hash for VersionFlags
Source§impl LowerHex for VersionFlags
impl LowerHex for VersionFlags
Source§impl Not for VersionFlags
impl Not for VersionFlags
Source§fn not(self) -> VersionFlags
fn not(self) -> VersionFlags
Returns the complement of this set of flags.
Source§type Output = VersionFlags
type Output = VersionFlags
! operator.Source§impl Octal for VersionFlags
impl Octal for VersionFlags
Source§impl Ord for VersionFlags
impl Ord for VersionFlags
Source§fn cmp(&self, other: &VersionFlags) -> Ordering
fn cmp(&self, other: &VersionFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for VersionFlags
impl PartialEq for VersionFlags
Source§impl PartialOrd for VersionFlags
impl PartialOrd for VersionFlags
Source§impl Sub for VersionFlags
impl Sub for VersionFlags
Source§fn sub(self, other: VersionFlags) -> VersionFlags
fn sub(self, other: VersionFlags) -> VersionFlags
Returns the set difference of the two sets of flags.
Source§type Output = VersionFlags
type Output = VersionFlags
- operator.Source§impl SubAssign for VersionFlags
impl SubAssign for VersionFlags
Source§fn sub_assign(&mut self, other: VersionFlags)
fn sub_assign(&mut self, other: VersionFlags)
Disables all flags enabled in the set.