Enum solana_rbpf::static_analysis::DataResource
source · pub enum DataResource {
Register(u8),
Memory,
}
Expand description
The register or memory location a data-flow edge guards
Variants§
Trait Implementations§
source§impl Clone for DataResource
impl Clone for DataResource
source§fn clone(&self) -> DataResource
fn clone(&self) -> DataResource
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 DataResource
impl Debug for DataResource
source§impl Hash for DataResource
impl Hash for DataResource
source§impl Ord for DataResource
impl Ord for DataResource
source§fn cmp(&self, other: &DataResource) -> Ordering
fn cmp(&self, other: &DataResource) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DataResource
impl PartialEq for DataResource
source§fn eq(&self, other: &DataResource) -> bool
fn eq(&self, other: &DataResource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DataResource
impl PartialOrd for DataResource
source§fn partial_cmp(&self, other: &DataResource) -> Option<Ordering>
fn partial_cmp(&self, other: &DataResource) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for DataResource
impl StructuralPartialEq for DataResource
Auto Trait Implementations§
impl Freeze for DataResource
impl RefUnwindSafe for DataResource
impl Send for DataResource
impl Sync for DataResource
impl Unpin for DataResource
impl UnwindSafe for DataResource
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more