Skip to main content

SingletonReading

Struct SingletonReading 

Source
pub struct SingletonReading<'s, 'a> { /* private fields */ }
Expand description

Inspection selection among original byte-identical attribute instances.

Repetition is a conformance violation for a registered singleton, not a successful strict binding. Signer inspection retains its located diagnostics independently; this borrowed selection does not allocate another report.

Implementations§

Source§

impl<'s, 'a> SingletonReading<'s, 'a>

Source

pub fn attribute(&self) -> Option<&'s Attribute<'a>>

The original first instance, or absence after the complete paid query.

Source

pub fn repeats(&self) -> usize

Number of later byte-identical instances, excluding the first one.

Both absence and one instance have zero repeats. This describes instances, not the cardinality of values inside one Attribute.

Trait Implementations§

Source§

impl<'s, 'a> Debug for SingletonReading<'s, 'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'s, 'a> !RefUnwindSafe for SingletonReading<'s, 'a>

§

impl<'s, 'a> !Send for SingletonReading<'s, 'a>

§

impl<'s, 'a> !Sync for SingletonReading<'s, 'a>

§

impl<'s, 'a> !UnwindSafe for SingletonReading<'s, 'a>

§

impl<'s, 'a> Freeze for SingletonReading<'s, 'a>

§

impl<'s, 'a> Unpin for SingletonReading<'s, 'a>

§

impl<'s, 'a> UnsafeUnpin for SingletonReading<'s, 'a>

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.