Skip to main content

Claimed

Struct Claimed 

Source
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§

Source§

impl Default for Claimed

Source§

fn default() -> Claimed

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.