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.