pub struct UnboundedField {
pub path: [&'static str; 8],
pub depth: usize,
pub truncated: bool,
pub kind: UnboundedKind,
}Expand description
The first member that makes a type unbounded, named.
max_serialized_size answers None, which is honest and useless on its
own: a user told their type has no bound cannot act without knowing WHICH
member costs it, and the offender is routinely three structs down in a type
they did not write. This is that answer.
Fields§
§path: [&'static str; 8]Field names from the root outward; only depth entries are meaningful.
depth: usizeHow many entries of path are set.
truncated: boolTrue when nesting exceeded MAX_FIELD_PATH_DEPTH and path names a
prefix rather than the whole route.
kind: UnboundedKindWhat kind of member it is.
Trait Implementations§
Source§impl Clone for UnboundedField
impl Clone for UnboundedField
Source§fn clone(&self) -> UnboundedField
fn clone(&self) -> UnboundedField
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 Copy for UnboundedField
Source§impl Debug for UnboundedField
impl Debug for UnboundedField
Source§impl Display for UnboundedField
impl Display for UnboundedField
impl Eq for UnboundedField
Source§impl PartialEq for UnboundedField
impl PartialEq for UnboundedField
Source§fn eq(&self, other: &UnboundedField) -> bool
fn eq(&self, other: &UnboundedField) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UnboundedField
Auto Trait Implementations§
impl Freeze for UnboundedField
impl RefUnwindSafe for UnboundedField
impl Send for UnboundedField
impl Sync for UnboundedField
impl Unpin for UnboundedField
impl UnsafeUnpin for UnboundedField
impl UnwindSafe for UnboundedField
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