pub struct RustTrait {
pub name: String,
pub visibility: Visibility,
pub doc_comment: Option<String>,
pub parsed_doc: Option<ParsedDocstring>,
pub generics: Option<String>,
pub bounds: Option<String>,
pub associated_types: Vec<RustAssociatedType>,
pub methods: Vec<RustFunction>,
pub source: SourceSpan,
}Expand description
A Rust trait definition
Fields§
§name: String§visibility: Visibility§doc_comment: Option<String>§parsed_doc: Option<ParsedDocstring>§generics: Option<String>Generic parameters as string
bounds: Option<String>Supertraits as string, e.g. “: Clone + Send”
associated_types: Vec<RustAssociatedType>§methods: Vec<RustFunction>§source: SourceSpanTrait Implementations§
Source§impl<'de> Deserialize<'de> for RustTrait
impl<'de> Deserialize<'de> for RustTrait
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 RustTrait
impl RefUnwindSafe for RustTrait
impl Send for RustTrait
impl Sync for RustTrait
impl Unpin for RustTrait
impl UnsafeUnpin for RustTrait
impl UnwindSafe for RustTrait
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