pub struct DocComments {
pub types: FastIndexMap<Handle<Type>, Vec<String>>,
pub struct_members: FastIndexMap<(Handle<Type>, usize), Vec<String>>,
pub entry_points: FastIndexMap<usize, Vec<String>>,
pub functions: FastIndexMap<Handle<Function>, Vec<String>>,
pub constants: FastIndexMap<Handle<Constant>, Vec<String>>,
pub global_variables: FastIndexMap<Handle<GlobalVariable>, Vec<String>>,
pub module: Vec<String>,
}
Expand description
Doc comments preceding items.
These can be used to generate automated documentation, IDE hover information or translate shaders with their context comments.
Fields§
§types: FastIndexMap<Handle<Type>, Vec<String>>
§struct_members: FastIndexMap<(Handle<Type>, usize), Vec<String>>
§entry_points: FastIndexMap<usize, Vec<String>>
§functions: FastIndexMap<Handle<Function>, Vec<String>>
§constants: FastIndexMap<Handle<Constant>, Vec<String>>
§global_variables: FastIndexMap<Handle<GlobalVariable>, Vec<String>>
§module: Vec<String>
Trait Implementations§
Source§impl Clone for DocComments
impl Clone for DocComments
Source§fn clone(&self) -> DocComments
fn clone(&self) -> DocComments
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 DocComments
impl Debug for DocComments
Source§impl Default for DocComments
impl Default for DocComments
Source§fn default() -> DocComments
fn default() -> DocComments
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DocComments
impl RefUnwindSafe for DocComments
impl Send for DocComments
impl Sync for DocComments
impl Unpin for DocComments
impl UnwindSafe for DocComments
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