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<'arbitrary> Arbitrary<'arbitrary> for DocComments
impl<'arbitrary> Arbitrary<'arbitrary> for DocComments
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreSource§impl Clone for DocComments
impl Clone for DocComments
Source§fn clone(&self) -> DocComments
fn clone(&self) -> DocComments
Returns a copy 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
Source§impl<'de> Deserialize<'de> for DocComments
impl<'de> Deserialize<'de> for DocComments
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 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