pub struct GlobalSourceId {
pub session: u64,
pub source: SourceId,
}Fields§
§session: u64§source: SourceIdTrait Implementations§
Source§impl Clone for GlobalSourceId
impl Clone for GlobalSourceId
Source§fn clone(&self) -> GlobalSourceId
fn clone(&self) -> GlobalSourceId
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 moreimpl Compatible<GlobalSourceId> for GlobalSourceId
impl<Source> Compatible<GlobalSourceIdGen<Source>> for GlobalSourceId
impl<'a> Compatible<GlobalSourceIdLazy<'a>> for GlobalSourceId
impl Copy for GlobalSourceId
Source§impl Debug for GlobalSourceId
impl Debug for GlobalSourceId
Source§impl<'a> Decode<'a> for GlobalSourceId
impl<'a> Decode<'a> for GlobalSourceId
fn decode(cursor: &DecodeCursor<'a>) -> Result<GlobalSourceId, DecodeError>
Source§impl Encode for GlobalSourceId
impl Encode for GlobalSourceId
fn scratch_len(&self) -> usize
fn encode(&self, cursor: &mut EncodeCursor<'_>)
impl Eq for GlobalSourceId
Source§impl Hash for GlobalSourceId
impl Hash for GlobalSourceId
Source§impl Ord for GlobalSourceId
impl Ord for GlobalSourceId
Source§fn cmp(&self, other: &GlobalSourceId) -> Ordering
fn cmp(&self, other: &GlobalSourceId) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl Owned for GlobalSourceId
impl Owned for GlobalSourceId
type Lazy<'a> = GlobalSourceIdLazy<'a>
fn lazy_to_owned( lazy: <GlobalSourceId as Owned>::Lazy<'_>, ) -> Result<GlobalSourceId, DecodeError>
Source§impl PartialEq for GlobalSourceId
impl PartialEq for GlobalSourceId
Source§impl PartialOrd for GlobalSourceId
impl PartialOrd for GlobalSourceId
impl StructuralPartialEq for GlobalSourceId
Source§impl<'a> TryFrom<GlobalSourceIdLazy<'a>> for GlobalSourceId
impl<'a> TryFrom<GlobalSourceIdLazy<'a>> for GlobalSourceId
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(
other: GlobalSourceIdLazy<'a>,
) -> Result<GlobalSourceId, <GlobalSourceId as TryFrom<GlobalSourceIdLazy<'a>>>::Error>
fn try_from( other: GlobalSourceIdLazy<'a>, ) -> Result<GlobalSourceId, <GlobalSourceId as TryFrom<GlobalSourceIdLazy<'a>>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for GlobalSourceId
impl RefUnwindSafe for GlobalSourceId
impl Send for GlobalSourceId
impl Sync for GlobalSourceId
impl Unpin for GlobalSourceId
impl UnsafeUnpin for GlobalSourceId
impl UnwindSafe for GlobalSourceId
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