[−][src]Struct casperlabs_contract_ffi::uref::URef
Represents an unforgeable reference
Methods
impl URef
[src]
pub fn new(id: [u8; 32], access_rights: AccessRights) -> Self
[src]
Creates a URef
from an id and access rights.
pub fn addr(&self) -> [u8; 32]
[src]
Returns the address of this URef.
pub fn access_rights(&self) -> Option<AccessRights>
[src]
Returns the access rights of this URef.
pub fn with_access_rights(self, access_rights: AccessRights) -> Self
[src]
Returns a new URef with updated access rights.
pub fn remove_access_rights(self) -> Self
[src]
Removes the access rights from this URef.
pub fn is_readable(self) -> bool
[src]
pub fn into_read(self) -> URef
[src]
pub fn into_read_add_write(self) -> URef
[src]
pub fn is_writeable(self) -> bool
[src]
pub fn is_addable(self) -> bool
[src]
pub fn as_string(&self) -> String
[src]
Formats address and its access rights in an unique way that could be used as a name when storing given uref in a global state.
Trait Implementations
impl CLTyped for URef
[src]
impl Clone for URef
[src]
fn clone(&self) -> URef
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for URef
[src]
impl Debug for URef
[src]
impl Display for URef
[src]
impl Eq for URef
[src]
impl From<PurseId> for URef
[src]
impl<T: CLTyped> From<TURef<T>> for URef
[src]
impl From<URef> for Key
[src]
impl FromBytes for URef
[src]
fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>
[src]
fn from_vec(bytes: Vec<u8>) -> Result<(Self, Vec<u8>), Error>
[src]
impl Hash for URef
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for URef
[src]
fn cmp(&self, other: &URef) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<URef> for URef
[src]
impl PartialOrd<URef> for URef
[src]
fn partial_cmp(&self, other: &URef) -> Option<Ordering>
[src]
fn lt(&self, other: &URef) -> bool
[src]
fn le(&self, other: &URef) -> bool
[src]
fn gt(&self, other: &URef) -> bool
[src]
fn ge(&self, other: &URef) -> bool
[src]
impl StructuralEq for URef
[src]
impl StructuralPartialEq for URef
[src]
impl ToBytes for URef
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,