pub struct InteractiveAPIReference {
pub traits: HashMap<String, DocumentedTrait>,
pub types: HashMap<String, DocumentedType>,
pub functions: HashMap<String, DocumentedFunction>,
pub search_index: SearchIndex,
pub config: APIReferenceConfig,
}Expand description
Interactive API reference generator
Generates comprehensive, interactive API documentation with search, filtering, and live code examples.
Fields§
§traits: HashMap<String, DocumentedTrait>All documented traits
types: HashMap<String, DocumentedType>All documented types
functions: HashMap<String, DocumentedFunction>All documented functions
search_index: SearchIndexSearch index for fast lookups
config: APIReferenceConfigConfiguration
Implementations§
Source§impl InteractiveAPIReference
impl InteractiveAPIReference
Sourcepub fn add_trait(&mut self, trait_doc: DocumentedTrait)
pub fn add_trait(&mut self, trait_doc: DocumentedTrait)
Add a documented trait
Sourcepub fn add_type(&mut self, type_doc: DocumentedType)
pub fn add_type(&mut self, type_doc: DocumentedType)
Add a documented type
Sourcepub fn add_function(&mut self, func_doc: DocumentedFunction)
pub fn add_function(&mut self, func_doc: DocumentedFunction)
Add a documented function
Sourcepub fn search(&self, query: &str) -> SearchResults
pub fn search(&self, query: &str) -> SearchResults
Search the API reference
Sourcepub fn generate_html(&self) -> String
pub fn generate_html(&self) -> String
Generate HTML documentation
Trait Implementations§
Source§impl Clone for InteractiveAPIReference
impl Clone for InteractiveAPIReference
Source§fn clone(&self) -> InteractiveAPIReference
fn clone(&self) -> InteractiveAPIReference
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InteractiveAPIReference
impl Debug for InteractiveAPIReference
Auto Trait Implementations§
impl Freeze for InteractiveAPIReference
impl RefUnwindSafe for InteractiveAPIReference
impl Send for InteractiveAPIReference
impl Sync for InteractiveAPIReference
impl Unpin for InteractiveAPIReference
impl UnwindSafe for InteractiveAPIReference
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§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 more