pub struct Authority {
pub structural: u8,
pub prose: u8,
}Expand description
The two-axis trust level a Source carries. See spec §4.4’s authority
table — the tier with the best structure is frequently not the tier with
the best prose, so merge resolves each axis independently rather than by
a single priority order.
Fields§
§structural: u8Trust for names, nesting, arity, which flags exist.
prose: u8Trust for descriptions, summaries, examples.
Implementations§
Trait Implementations§
impl Copy for Authority
impl Eq for Authority
impl StructuralPartialEq for Authority
Auto Trait Implementations§
impl Freeze for Authority
impl RefUnwindSafe for Authority
impl Send for Authority
impl Sync for Authority
impl Unpin for Authority
impl UnsafeUnpin for Authority
impl UnwindSafe for Authority
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