pub struct Claimed {
pub functions: HashSet<Ident>,
pub types: HashSet<TypeKey>,
pub consts: Option<HashSet<Ident>>,
pub ignored_functions: HashSet<Ident>,
pub ignored_types: HashSet<TypeKey>,
pub ignored_consts: HashSet<Ident>,
pub ignored_name_predicates: Vec<NamePredicate>,
}Expand description
What a binding claimed, so everything else can be reported.
The two populations are separate on purpose. A declared item is claimed and emitted; an ignored one is claimed and deliberately dropped. Both silence the skip report, but only an ignore that matches nothing is itself worth a warning — a declaration that matches nothing is a hard error the registry raises long before this runs.
Fields§
§functions: HashSet<Ident>Functions the binding emits, plus the helpers it only references.
types: HashSet<TypeKey>Types the binding emits, plus the ones that cross only through a plan.
consts: Option<HashSet<Ident>>Consts the binding emits, or None when it has no const mechanism at
all — then every const is re-emitted verbatim, so none is ever skipped
and reporting one would be a lie.
ignored_functions: HashSet<Ident>§ignored_types: HashSet<TypeKey>§ignored_consts: HashSet<Ident>§ignored_name_predicates: Vec<NamePredicate>Bulk ignores keyed on a naming family rather than an exact ident. Kind-agnostic: prebindgen names live in one flat namespace.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Claimed
impl !Send for Claimed
impl !Sync for Claimed
impl !UnwindSafe for Claimed
impl Freeze for Claimed
impl Unpin for Claimed
impl UnsafeUnpin for Claimed
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
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> ⓘ
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> ⓘ
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