pub struct AdvertisementRecord { /* private fields */ }Expand description
One immutable listing entry with its canonical listing bytes, measured once when the entry is built.
Implementations§
Source§impl AdvertisementRecord
impl AdvertisementRecord
Sourcepub fn new(record_hash: RecordHash, fields: Vec<AdvertisementField>) -> Self
pub fn new(record_hash: RecordHash, fields: Vec<AdvertisementField>) -> Self
An entry of fields in canonical name and occurrence order.
pub fn record_hash(&self) -> RecordHash
pub fn fields(&self) -> &[AdvertisementField]
Sourcepub fn canonical_bytes(&self) -> u64
pub fn canonical_bytes(&self) -> u64
Bytes of the entry’s lines in a listing block, each with its LF.
Trait Implementations§
Source§impl Clone for AdvertisementRecord
impl Clone for AdvertisementRecord
Source§fn clone(&self) -> AdvertisementRecord
fn clone(&self) -> AdvertisementRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AdvertisementRecord
impl Debug for AdvertisementRecord
impl Eq for AdvertisementRecord
Source§impl PartialEq for AdvertisementRecord
impl PartialEq for AdvertisementRecord
Source§fn eq(&self, other: &AdvertisementRecord) -> bool
fn eq(&self, other: &AdvertisementRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AdvertisementRecord
Auto Trait Implementations§
impl Freeze for AdvertisementRecord
impl RefUnwindSafe for AdvertisementRecord
impl Send for AdvertisementRecord
impl Sync for AdvertisementRecord
impl Unpin for AdvertisementRecord
impl UnsafeUnpin for AdvertisementRecord
impl UnwindSafe for AdvertisementRecord
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