Struct modality_mutator_protocol::attrs::EventCoordinate
source · pub struct EventCoordinate {
pub timeline_id: TimelineId,
pub id: [u8; 16],
}
Fields§
§timeline_id: TimelineId
§id: [u8; 16]
Implementations§
source§impl EventCoordinate
impl EventCoordinate
pub fn as_bytes(&self) -> [u8; 32]
pub fn from_byte_slice(bytes: &[u8]) -> Option<EventCoordinate>
Trait Implementations§
source§impl Clone for EventCoordinate
impl Clone for EventCoordinate
source§fn clone(&self) -> EventCoordinate
fn clone(&self) -> EventCoordinate
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 EventCoordinate
impl Debug for EventCoordinate
source§impl<'b> Decode<'b> for EventCoordinate
impl<'b> Decode<'b> for EventCoordinate
source§impl Display for EventCoordinate
impl Display for EventCoordinate
source§impl Encode for EventCoordinate
impl Encode for EventCoordinate
source§impl From<EventCoordinate> for AttrVal
impl From<EventCoordinate> for AttrVal
source§fn from(coord: EventCoordinate) -> AttrVal
fn from(coord: EventCoordinate) -> AttrVal
Converts to this type from the input type.
source§impl Hash for EventCoordinate
impl Hash for EventCoordinate
source§impl Ord for EventCoordinate
impl Ord for EventCoordinate
source§fn cmp(&self, other: &EventCoordinate) -> Ordering
fn cmp(&self, other: &EventCoordinate) -> 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<EventCoordinate> for EventCoordinate
impl PartialEq<EventCoordinate> for EventCoordinate
source§fn eq(&self, other: &EventCoordinate) -> bool
fn eq(&self, other: &EventCoordinate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<EventCoordinate> for EventCoordinate
impl PartialOrd<EventCoordinate> for EventCoordinate
source§fn partial_cmp(&self, other: &EventCoordinate) -> Option<Ordering>
fn partial_cmp(&self, other: &EventCoordinate) -> 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 moresource§impl TryFrom<AttrVal> for EventCoordinate
impl TryFrom<AttrVal> for EventCoordinate
§type Error = WrongAttrTypeError
type Error = WrongAttrTypeError
The type returned in the event of a conversion error.
source§fn try_from(
value: AttrVal
) -> Result<EventCoordinate, <EventCoordinate as TryFrom<AttrVal>>::Error>
fn try_from( value: AttrVal ) -> Result<EventCoordinate, <EventCoordinate as TryFrom<AttrVal>>::Error>
Performs the conversion.
impl Eq for EventCoordinate
impl StructuralEq for EventCoordinate
impl StructuralPartialEq for EventCoordinate
Auto Trait Implementations§
impl RefUnwindSafe for EventCoordinate
impl Send for EventCoordinate
impl Sync for EventCoordinate
impl Unpin for EventCoordinate
impl UnwindSafe for EventCoordinate
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