Struct binaryninja::rc::Ref

source ·
pub struct Ref<T: RefCountable> { /* private fields */ }

Trait Implementations§

source§

impl<T: RefCountable> AsRef<T> for Ref<T>

source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: RefCountable> Borrow<T> for Ref<T>

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T: RefCountable> Clone for Ref<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: RefCountable + Debug> Debug for Ref<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: RefCountable> DerefMut for Ref<T>

source§

fn deref_mut(&mut self) -> &mut T

Mutably dereferences the value.
source§

impl<T: RefCountable + Display> Display for Ref<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: RefCountable> Drop for Ref<T>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<S, T> From<&[(S, T)]> for Ref<Metadata>
where S: BnStrCompatible + Copy, for<'a> &'a T: Into<Ref<Metadata>>,

source§

fn from(value: &[(S, T)]) -> Self

Converts to this type from the input type.
source§

impl From<&Array<Metadata>> for Ref<Metadata>

source§

fn from(value: &Array<Metadata>) -> Self

Converts to this type from the input type.
source§

impl<'a, T: RefCountable> From<&'a Ref<T>> for Conf<&'a T>

source§

fn from(r: &'a Ref<T>) -> Self

Converts to this type from the input type.
source§

impl From<&Vec<Ref<Metadata>>> for Ref<Metadata>

source§

fn from(value: &Vec<Ref<Metadata>>) -> Self

Converts to this type from the input type.
source§

impl From<&Vec<bool>> for Ref<Metadata>

source§

fn from(value: &Vec<bool>) -> Self

Converts to this type from the input type.
source§

impl From<&Vec<f64>> for Ref<Metadata>

source§

fn from(value: &Vec<f64>) -> Self

Converts to this type from the input type.
source§

impl From<&Vec<i64>> for Ref<Metadata>

source§

fn from(value: &Vec<i64>) -> Self

Converts to this type from the input type.
source§

impl From<&Vec<u64>> for Ref<Metadata>

source§

fn from(value: &Vec<u64>) -> Self

Converts to this type from the input type.
source§

impl From<&Vec<u8>> for Ref<Metadata>

source§

fn from(value: &Vec<u8>) -> Self

Converts to this type from the input type.
source§

impl From<&str> for Ref<Metadata>

source§

fn from(value: &str) -> Self

Converts to this type from the input type.
source§

impl<S, T, const N: usize> From<[(S, T); N]> for Ref<Metadata>
where S: BnStrCompatible + Copy, for<'a> &'a T: Into<Ref<Metadata>>,

source§

fn from(value: [(S, T); N]) -> Self

Converts to this type from the input type.
source§

impl<S: BnStrCompatible> From<HashMap<S, Ref<Metadata>>> for Ref<Metadata>

source§

fn from(value: HashMap<S, Ref<Metadata>>) -> Self

Converts to this type from the input type.
source§

impl From<String> for Ref<Metadata>

source§

fn from(value: String) -> Self

Converts to this type from the input type.
source§

impl<S: BnStrCompatible> From<Vec<S>> for Ref<Metadata>

source§

fn from(value: Vec<S>) -> Self

Converts to this type from the input type.
source§

impl From<bool> for Ref<Metadata>

source§

fn from(value: bool) -> Self

Converts to this type from the input type.
source§

impl From<f64> for Ref<Metadata>

source§

fn from(value: f64) -> Self

Converts to this type from the input type.
source§

impl From<i64> for Ref<Metadata>

source§

fn from(value: i64) -> Self

Converts to this type from the input type.
source§

impl From<u64> for Ref<Metadata>

source§

fn from(value: u64) -> Self

Converts to this type from the input type.
source§

impl<T: RefCountable + Hash> Hash for Ref<T>

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl IntoJson for Ref<Metadata>

source§

impl<T: RefCountable + PartialEq> PartialEq for Ref<T>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T: RefCountable> Deref for Ref<T>

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
source§

impl Eq for Ref<Metadata>

source§

impl<T: RefCountable + Eq> Eq for Ref<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for Ref<T>
where T: RefUnwindSafe,

§

impl<T> Send for Ref<T>
where T: Send,

§

impl<T> Sync for Ref<T>
where T: Sync,

§

impl<T> Unpin for Ref<T>
where T: Unpin,

§

impl<T> UnwindSafe for Ref<T>
where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.