pub enum ListingRow {
Withdrawn(RecordHash),
Added(Arc<AdvertisementRecord>),
}Expand description
One listing row: a withdrawal or a complete added entry.
Variants§
Withdrawn(RecordHash)
Added(Arc<AdvertisementRecord>)
Implementations§
Source§impl ListingRow
impl ListingRow
pub fn hash(&self) -> RecordHash
Sourcepub fn rendered_bytes(&self, form: ListingForm) -> u64
pub fn rendered_bytes(&self, form: ListingForm) -> u64
Rendered bytes in a form item, each line with its LF.
Trait Implementations§
Source§impl Clone for ListingRow
impl Clone for ListingRow
Source§fn clone(&self) -> ListingRow
fn clone(&self) -> ListingRow
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 ListingRow
impl Debug for ListingRow
impl Eq for ListingRow
Source§impl PartialEq for ListingRow
impl PartialEq for ListingRow
Source§fn eq(&self, other: &ListingRow) -> bool
fn eq(&self, other: &ListingRow) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ListingRow
Auto Trait Implementations§
impl Freeze for ListingRow
impl RefUnwindSafe for ListingRow
impl Send for ListingRow
impl Sync for ListingRow
impl Unpin for ListingRow
impl UnsafeUnpin for ListingRow
impl UnwindSafe for ListingRow
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