pub enum RootType {
Expression(Box<Expression>),
RootReference(RootReference),
OuterReference(OuterReference),
}
Expand description
Whether this reference has an origin of a root struct or is based on the ouput of an expression. When this is a RootReference and direct_reference above is used, the direct_reference must be of a type StructField.
Variants§
Implementations§
Source§impl RootType
impl RootType
Sourcepub fn merge(
field: &mut Option<RootType>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<RootType>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl StructuralPartialEq for RootType
Auto Trait Implementations§
impl Freeze for RootType
impl RefUnwindSafe for RootType
impl Send for RootType
impl Sync for RootType
impl Unpin for RootType
impl UnwindSafe for RootType
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