pub struct TypeIdentifierWithDependencies {
pub typeid_with_size: TypeIdentifierWithSize,
pub dependent_typeid_count: i32,
pub dependent_typeids: Vec<TypeIdentifierWithSize>,
}Expand description
TypeIdentifier + Abhaengigkeiten (§7.6.3.2.2).
Fields§
§typeid_with_size: TypeIdentifierWithSizeMain type.
dependent_typeid_count: i32Number of transitive dependencies (can be -1 = “unknown”).
When dependent_typeids.len() == dependent_typeid_count, the
list is complete. With -1 the receiver can fetch more via
TypeLookup getTypeDependencies.
dependent_typeids: Vec<TypeIdentifierWithSize>Transitive dependencies (only those the sender knows).
Implementations§
Source§impl TypeIdentifierWithDependencies
impl TypeIdentifierWithDependencies
Sourcepub fn without_dependencies(typeid_with_size: TypeIdentifierWithSize) -> Self
pub fn without_dependencies(typeid_with_size: TypeIdentifierWithSize) -> Self
Short constructor for types without known dependencies.
Sourcepub fn encode_into(&self, w: &mut BufferWriter) -> Result<(), EncodeError>
pub fn encode_into(&self, w: &mut BufferWriter) -> Result<(), EncodeError>
Sourcepub fn decode_from(r: &mut BufferReader<'_>) -> Result<Self, TypeCodecError>
pub fn decode_from(r: &mut BufferReader<'_>) -> Result<Self, TypeCodecError>
Trait Implementations§
Source§impl Clone for TypeIdentifierWithDependencies
impl Clone for TypeIdentifierWithDependencies
Source§fn clone(&self) -> TypeIdentifierWithDependencies
fn clone(&self) -> TypeIdentifierWithDependencies
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 Eq for TypeIdentifierWithDependencies
Source§impl PartialEq for TypeIdentifierWithDependencies
impl PartialEq for TypeIdentifierWithDependencies
Source§fn eq(&self, other: &TypeIdentifierWithDependencies) -> bool
fn eq(&self, other: &TypeIdentifierWithDependencies) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypeIdentifierWithDependencies
Auto Trait Implementations§
impl Freeze for TypeIdentifierWithDependencies
impl RefUnwindSafe for TypeIdentifierWithDependencies
impl Send for TypeIdentifierWithDependencies
impl Sync for TypeIdentifierWithDependencies
impl Unpin for TypeIdentifierWithDependencies
impl UnsafeUnpin for TypeIdentifierWithDependencies
impl UnwindSafe for TypeIdentifierWithDependencies
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