pub struct EntityPath(pub Vec<PathSegment>);
Expand description
An entity path.
Tuple Fields§
§0: Vec<PathSegment>
Trait Implementations§
Source§impl AsRef<[PathSegment]> for EntityPath
impl AsRef<[PathSegment]> for EntityPath
Source§fn as_ref(&self) -> &[PathSegment]
fn as_ref(&self) -> &[PathSegment]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl BorshDeserialize for EntityPath
impl BorshDeserialize for EntityPath
fn deserialize_reader<__R>(reader: &mut __R) -> Result<EntityPath, Error>where
__R: Read,
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for EntityPath
impl BorshSerialize for EntityPath
Source§impl Clone for EntityPath
impl Clone for EntityPath
Source§fn clone(&self) -> EntityPath
fn clone(&self) -> EntityPath
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 EntityPath
impl Debug for EntityPath
Source§impl Default for EntityPath
impl Default for EntityPath
Source§fn default() -> EntityPath
fn default() -> EntityPath
Returns the “default value” for a type. Read more
Source§impl<T, const N: usize> From<[T; N]> for EntityPathwhere
T: Into<PathSegment>,
impl<T, const N: usize> From<[T; N]> for EntityPathwhere
T: Into<PathSegment>,
Source§fn from(value: [T; N]) -> EntityPath
fn from(value: [T; N]) -> EntityPath
Converts to this type from the input type.
Source§impl From<()> for EntityPath
impl From<()> for EntityPath
Source§fn from(_: ()) -> EntityPath
fn from(_: ()) -> EntityPath
Converts to this type from the input type.
Source§impl Hash for EntityPath
impl Hash for EntityPath
Source§impl Ord for EntityPath
impl Ord for EntityPath
Source§fn cmp(&self, other: &EntityPath) -> Ordering
fn cmp(&self, other: &EntityPath) -> 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 EntityPath
impl PartialEq for EntityPath
Source§impl PartialOrd for EntityPath
impl PartialOrd for EntityPath
impl Eq for EntityPath
impl StructuralPartialEq for EntityPath
Auto Trait Implementations§
impl Freeze for EntityPath
impl RefUnwindSafe for EntityPath
impl Send for EntityPath
impl Sync for EntityPath
impl Unpin for EntityPath
impl UnwindSafe for EntityPath
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.