struct Part<T, U> {
_artifact: PhantomData<T>,
item: U,
}
Expand description
A piece of one of the shared artifacts for documentation (search index, sources, alias list, etc.)
Merged at a user specified time and written to the doc/
directory
Fields§
§_artifact: PhantomData<T>
§item: U
Implementations§
source§impl Part<SearchIndex, EscapedJson>
impl Part<SearchIndex, EscapedJson>
fn blank() -> SortedTemplate<<Self as CciPart>::FileFormat>
fn get( search_index: OrderedJson, resource_suffix: &str, ) -> Result<PartsAndLocations<Self>, Error>
source§impl Part<AllCrates, OrderedJson>
impl Part<AllCrates, OrderedJson>
fn blank() -> SortedTemplate<<Self as CciPart>::FileFormat>
fn get( crate_name_json: OrderedJson, resource_suffix: &str, ) -> Result<PartsAndLocations<Self>, Error>
source§impl Part<CratesIndex, String>
impl Part<CratesIndex, String>
fn blank(cx: &Context<'_>) -> SortedTemplate<<Self as CciPart>::FileFormat>
source§impl Part<Sources, EscapedJson>
impl Part<Sources, EscapedJson>
fn blank() -> SortedTemplate<<Self as CciPart>::FileFormat>
fn get( cx: &Context<'_>, crate_name: &OrderedJson, ) -> Result<PartsAndLocations<Self>, Error>
source§impl Part<TypeAlias, OrderedJson>
impl Part<TypeAlias, OrderedJson>
fn blank() -> SortedTemplate<<Self as CciPart>::FileFormat>
fn get( cx: &mut Context<'_>, krate: &Crate, crate_name_json: &OrderedJson, ) -> Result<PartsAndLocations<Self>, Error>
source§impl Part<TraitAlias, OrderedJson>
impl Part<TraitAlias, OrderedJson>
fn blank() -> SortedTemplate<<Self as CciPart>::FileFormat>
fn get( cx: &mut Context<'_>, crate_name_json: &OrderedJson, ) -> Result<PartsAndLocations<Self>, Error>
Trait Implementations§
source§impl CciPart for Part<AllCrates, OrderedJson>
impl CciPart for Part<AllCrates, OrderedJson>
source§type FileFormat = Js
type FileFormat = Js
Identifies the file format of the cross-crate information
fn from_crate_info(crate_info: &CrateInfo) -> &PartsAndLocations<Self>
source§impl CciPart for Part<CratesIndex, String>
impl CciPart for Part<CratesIndex, String>
source§type FileFormat = Html
type FileFormat = Html
Identifies the file format of the cross-crate information
fn from_crate_info(crate_info: &CrateInfo) -> &PartsAndLocations<Self>
source§impl CciPart for Part<SearchIndex, EscapedJson>
impl CciPart for Part<SearchIndex, EscapedJson>
source§type FileFormat = Js
type FileFormat = Js
Identifies the file format of the cross-crate information
fn from_crate_info(crate_info: &CrateInfo) -> &PartsAndLocations<Self>
source§impl CciPart for Part<Sources, EscapedJson>
impl CciPart for Part<Sources, EscapedJson>
source§type FileFormat = Js
type FileFormat = Js
Identifies the file format of the cross-crate information
fn from_crate_info(crate_info: &CrateInfo) -> &PartsAndLocations<Self>
source§impl CciPart for Part<TraitAlias, OrderedJson>
impl CciPart for Part<TraitAlias, OrderedJson>
source§type FileFormat = Js
type FileFormat = Js
Identifies the file format of the cross-crate information
fn from_crate_info(crate_info: &CrateInfo) -> &PartsAndLocations<Self>
source§impl CciPart for Part<TypeAlias, OrderedJson>
impl CciPart for Part<TypeAlias, OrderedJson>
source§type FileFormat = Js
type FileFormat = Js
Identifies the file format of the cross-crate information
fn from_crate_info(crate_info: &CrateInfo) -> &PartsAndLocations<Self>
source§impl<'de, T, U> Deserialize<'de> for Part<T, U>where
U: Deserialize<'de>,
impl<'de, T, U> Deserialize<'de> for Part<T, U>where
U: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T, U> Freeze for Part<T, U>where
U: Freeze,
impl<T, U> RefUnwindSafe for Part<T, U>where
U: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, U> Send for Part<T, U>
impl<T, U> Sync for Part<T, U>
impl<T, U> Unpin for Part<T, U>
impl<T, U> UnwindSafe for Part<T, U>where
U: UnwindSafe,
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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 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>
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 moresource§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.