pub struct CppFieldOwnerIndex { /* private fields */ }Expand description
Which owners the parse product already holds field declarations for, folded in as the walk records them.
CppVisitor::has_enum_enumerator_units asks that question once per enum
and used to answer it by scanning every declaration accumulated so far:
O(enums x declarations) on exactly the generated headers that declare many
of both (#2786). The answer only grows by declaration, so the walk carries
it. A field’s short name names its owner chain, Owner.member, so one field
answers for every dotted prefix of its own short name; an anonymous enum’s
or union’s enumerators carry bare short names instead (#2140), which is what
an empty owner short name asks about.
Trait Implementations§
Source§impl Debug for CppFieldOwnerIndex
impl Debug for CppFieldOwnerIndex
Source§impl Default for CppFieldOwnerIndex
impl Default for CppFieldOwnerIndex
Source§fn default() -> CppFieldOwnerIndex
fn default() -> CppFieldOwnerIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CppFieldOwnerIndex
impl RefUnwindSafe for CppFieldOwnerIndex
impl Send for CppFieldOwnerIndex
impl Sync for CppFieldOwnerIndex
impl Unpin for CppFieldOwnerIndex
impl UnsafeUnpin for CppFieldOwnerIndex
impl UnwindSafe for CppFieldOwnerIndex
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more