Struct plutus_ledger_api::v1::crypto::LedgerBytes
source · pub struct LedgerBytes(pub Vec<u8>);
Expand description
A bytestring in the Cardano ledger context
Tuple Fields§
§0: Vec<u8>
Trait Implementations§
source§impl Clone for LedgerBytes
impl Clone for LedgerBytes
source§fn clone(&self) -> LedgerBytes
fn clone(&self) -> LedgerBytes
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 LedgerBytes
impl Debug for LedgerBytes
source§impl Hash for LedgerBytes
impl Hash for LedgerBytes
source§impl IsPlutusData for LedgerBytes
impl IsPlutusData for LedgerBytes
fn to_plutus_data(&self) -> PlutusData
fn from_plutus_data(data: &PlutusData) -> Result<Self, PlutusDataError>
source§impl Ord for LedgerBytes
impl Ord for LedgerBytes
source§fn cmp(&self, other: &LedgerBytes) -> Ordering
fn cmp(&self, other: &LedgerBytes) -> 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 LedgerBytes
impl PartialEq for LedgerBytes
source§fn eq(&self, other: &LedgerBytes) -> bool
fn eq(&self, other: &LedgerBytes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LedgerBytes
impl PartialOrd for LedgerBytes
source§fn partial_cmp(&self, other: &LedgerBytes) -> Option<Ordering>
fn partial_cmp(&self, other: &LedgerBytes) -> 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 LedgerBytes
impl StructuralPartialEq for LedgerBytes
Auto Trait Implementations§
impl RefUnwindSafe for LedgerBytes
impl Send for LedgerBytes
impl Sync for LedgerBytes
impl Unpin for LedgerBytes
impl UnwindSafe for LedgerBytes
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