pub enum HolderSet {
Tag(ByteString),
Ids(Vec<i32>),
}Expand description
A set of registry entries: a tag or an explicit list of registry ids
(protodef registryEntryHolderSet).
On the wire a VarInt n: 0 means a tag name (identifier string) follows, any other
value is followed by n - 1 VarInt registry ids.
Variants§
Implementations§
Trait Implementations§
Source§impl Decode for HolderSet
impl Decode for HolderSet
Source§fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
Decodes one value, advancing the reader past it.
Source§impl Encode for HolderSet
impl Encode for HolderSet
Source§fn encode(&self, w: &mut BytesMut) -> EncodeResult
fn encode(&self, w: &mut BytesMut) -> EncodeResult
Appends the encoding of
self to w.impl Eq for HolderSet
impl StructuralPartialEq for HolderSet
Auto Trait Implementations§
impl !Freeze for HolderSet
impl Forget for HolderSet
impl Move for HolderSet
impl RefUnwindSafe for HolderSet
impl Send for HolderSet
impl Sync for HolderSet
impl Unpin for HolderSet
impl UnsafeUnpin for HolderSet
impl UnwindSafe for HolderSet
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