Skip to main content

Surface

Struct Surface 

Source
pub struct Surface {
    pub items: BTreeMap<String, ItemInfo>,
    pub members: BTreeMap<String, ItemInfo>,
}
Expand description

Public items keyed by full path (crate::module::item).

Fields§

§items: BTreeMap<String, ItemInfo>§members: BTreeMap<String, ItemInfo>

Pub methods and associated consts of inherent impls, keyed type_path::name. Kept apart from items so the API reference and the API diff list top-level items only; Surface::counted joins the two for coverage.

Implementations§

Source§

impl Surface

Source

pub fn counted(&self) -> Vec<Counted<'_>>

Every item and every pub inherent method, deduplicated across pub use aliases and in path order. Trait-impl methods are never indexed and rustdoc omits #[doc(hidden)] items, so neither is counted. Every top-level item kind counts, plus inherent methods; associated consts do not.

Source§

impl Surface

Source

pub fn lookup(&self, path: &str) -> Option<&ItemInfo>

An item or an inherent member by full path, for bind resolution.

Source

pub fn grouped(&self) -> Vec<ItemGroup<'_>>

Every item in this surface, deduplicated across pub use aliases.

Trait Implementations§

Source§

impl Debug for Surface

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for Surface

Source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl Forget for Surface

§

impl Freeze for Surface
where *const LeafNode<String, ItemInfo> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(String, ItemInfo)>>: Freeze,

§

impl Move for Surface

§

impl RefUnwindSafe for Surface

§

impl Send for Surface
where NodeRef<Owned, String, ItemInfo, LeafOrInternal>: Send, BoxRaw<(String, ItemInfo)>: Send,

§

impl Sync for Surface
where NodeRef<Owned, String, ItemInfo, LeafOrInternal>: Sync, BoxRaw<(String, ItemInfo)>: Sync,

§

impl Unpin for Surface
where *const LeafNode<String, ItemInfo> is !null: Unpin, Box<(String, ItemInfo)>: Unpin,

§

impl UnsafeUnpin for Surface
where *const LeafNode<String, ItemInfo> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(String, ItemInfo)>>: UnsafeUnpin,

§

impl UnwindSafe for Surface

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.