Struct gpio_cdev::LineRequestFlags [−]
pub struct LineRequestFlags { /* fields omitted */ }Methods
impl LineRequestFlags
impl LineRequestFlagspub const INPUT: LineRequestFlags
INPUT: LineRequestFlags = LineRequestFlags{bits: 1 << 0,}
pub const OUTPUT: LineRequestFlags
OUTPUT: LineRequestFlags = LineRequestFlags{bits: 1 << 1,}
pub const ACTIVE_LOW: LineRequestFlags
ACTIVE_LOW: LineRequestFlags = LineRequestFlags{bits: 1 << 2,}
pub const OPEN_DRAIN: LineRequestFlags
OPEN_DRAIN: LineRequestFlags = LineRequestFlags{bits: 1 << 3,}
pub const OPEN_SOURCE: LineRequestFlags
OPEN_SOURCE: LineRequestFlags = LineRequestFlags{bits: 1 << 4,}
pub fn empty() -> LineRequestFlags
pub fn empty() -> LineRequestFlagsReturns an empty set of flags.
pub fn all() -> LineRequestFlags
pub fn all() -> LineRequestFlagsReturns the set containing all flags.
pub fn bits(&self) -> uint32_t
pub fn bits(&self) -> uint32_tReturns the raw value of the flags currently stored.
pub fn from_bits(bits: uint32_t) -> Option<LineRequestFlags>
pub fn from_bits(bits: uint32_t) -> Option<LineRequestFlags>Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: uint32_t) -> LineRequestFlags
pub fn from_bits_truncate(bits: uint32_t) -> LineRequestFlagsConvert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> boolReturns true if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> boolReturns true if all flags are currently set.
pub fn intersects(&self, other: LineRequestFlags) -> bool
pub fn intersects(&self, other: LineRequestFlags) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: LineRequestFlags) -> bool
pub fn contains(&self, other: LineRequestFlags) -> boolReturns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: LineRequestFlags)
pub fn insert(&mut self, other: LineRequestFlags)Inserts the specified flags in-place.
pub fn remove(&mut self, other: LineRequestFlags)
pub fn remove(&mut self, other: LineRequestFlags)Removes the specified flags in-place.
pub fn toggle(&mut self, other: LineRequestFlags)
pub fn toggle(&mut self, other: LineRequestFlags)Toggles the specified flags in-place.
pub fn set(&mut self, other: LineRequestFlags, value: bool)
pub fn set(&mut self, other: LineRequestFlags, value: bool)Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for LineRequestFlags
impl Copy for LineRequestFlagsimpl PartialEq for LineRequestFlags
impl PartialEq for LineRequestFlagsfn eq(&self, other: &LineRequestFlags) -> bool
fn eq(&self, other: &LineRequestFlags) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &LineRequestFlags) -> bool
fn ne(&self, other: &LineRequestFlags) -> boolThis method tests for !=.
impl Eq for LineRequestFlags
impl Eq for LineRequestFlagsimpl Clone for LineRequestFlags
impl Clone for LineRequestFlagsfn clone(&self) -> LineRequestFlags
fn clone(&self) -> LineRequestFlagsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialOrd for LineRequestFlags
impl PartialOrd for LineRequestFlagsfn partial_cmp(&self, other: &LineRequestFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &LineRequestFlags) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &LineRequestFlags) -> bool
fn lt(&self, other: &LineRequestFlags) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &LineRequestFlags) -> bool
fn le(&self, other: &LineRequestFlags) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &LineRequestFlags) -> bool
fn gt(&self, other: &LineRequestFlags) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &LineRequestFlags) -> bool
fn ge(&self, other: &LineRequestFlags) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for LineRequestFlags
impl Ord for LineRequestFlagsfn cmp(&self, other: &LineRequestFlags) -> Ordering
fn cmp(&self, other: &LineRequestFlags) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for LineRequestFlags
impl Hash for LineRequestFlagsfn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for LineRequestFlags
impl Debug for LineRequestFlagsimpl Binary for LineRequestFlags
impl Binary for LineRequestFlagsimpl Octal for LineRequestFlags
impl Octal for LineRequestFlagsimpl LowerHex for LineRequestFlags
impl LowerHex for LineRequestFlagsimpl UpperHex for LineRequestFlags
impl UpperHex for LineRequestFlagsimpl BitOr for LineRequestFlags
impl BitOr for LineRequestFlagstype Output = LineRequestFlags
The resulting type after applying the | operator.
fn bitor(self, other: LineRequestFlags) -> LineRequestFlags
fn bitor(self, other: LineRequestFlags) -> LineRequestFlagsReturns the union of the two sets of flags.
impl BitOrAssign for LineRequestFlags
impl BitOrAssign for LineRequestFlagsfn bitor_assign(&mut self, other: LineRequestFlags)
fn bitor_assign(&mut self, other: LineRequestFlags)Adds the set of flags.
impl BitXor for LineRequestFlags
impl BitXor for LineRequestFlagstype Output = LineRequestFlags
The resulting type after applying the ^ operator.
fn bitxor(self, other: LineRequestFlags) -> LineRequestFlags
fn bitxor(self, other: LineRequestFlags) -> LineRequestFlagsReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for LineRequestFlags
impl BitXorAssign for LineRequestFlagsfn bitxor_assign(&mut self, other: LineRequestFlags)
fn bitxor_assign(&mut self, other: LineRequestFlags)Toggles the set of flags.
impl BitAnd for LineRequestFlags
impl BitAnd for LineRequestFlagstype Output = LineRequestFlags
The resulting type after applying the & operator.
fn bitand(self, other: LineRequestFlags) -> LineRequestFlags
fn bitand(self, other: LineRequestFlags) -> LineRequestFlagsReturns the intersection between the two sets of flags.
impl BitAndAssign for LineRequestFlags
impl BitAndAssign for LineRequestFlagsfn bitand_assign(&mut self, other: LineRequestFlags)
fn bitand_assign(&mut self, other: LineRequestFlags)Disables all flags disabled in the set.
impl Sub for LineRequestFlags
impl Sub for LineRequestFlagstype Output = LineRequestFlags
The resulting type after applying the - operator.
fn sub(self, other: LineRequestFlags) -> LineRequestFlags
fn sub(self, other: LineRequestFlags) -> LineRequestFlagsReturns the set difference of the two sets of flags.
impl SubAssign for LineRequestFlags
impl SubAssign for LineRequestFlagsfn sub_assign(&mut self, other: LineRequestFlags)
fn sub_assign(&mut self, other: LineRequestFlags)Disables all flags enabled in the set.
impl Not for LineRequestFlags
impl Not for LineRequestFlagstype Output = LineRequestFlags
The resulting type after applying the ! operator.
fn not(self) -> LineRequestFlags
fn not(self) -> LineRequestFlagsReturns the complement of this set of flags.
impl Extend<LineRequestFlags> for LineRequestFlags
impl Extend<LineRequestFlags> for LineRequestFlagsfn extend<T: IntoIterator<Item = LineRequestFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = LineRequestFlags>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<LineRequestFlags> for LineRequestFlags
impl FromIterator<LineRequestFlags> for LineRequestFlagsfn from_iter<T: IntoIterator<Item = LineRequestFlags>>(
iterator: T
) -> LineRequestFlags
fn from_iter<T: IntoIterator<Item = LineRequestFlags>>(
iterator: T
) -> LineRequestFlagsCreates a value from an iterator. Read more
Auto Trait Implementations
impl Send for LineRequestFlags
impl Send for LineRequestFlagsimpl Sync for LineRequestFlags
impl Sync for LineRequestFlags