pub struct StructUnit {
pub name: String,
pub attributes: Vec<String>,
pub visibility: Visibility,
pub doc: Option<String>,
pub head: String,
pub fields: Vec<FieldUnit>,
pub methods: Vec<FunctionUnit>,
pub source: Option<String>,
}
Expand description
Represents a struct or class in the code
Fields§
§name: String
The name of the struct
attributes: Vec<String>
Attributes applied to the struct
visibility: Visibility
The visibility of the struct
doc: Option<String>
The documentation for the struct
head: String
struct head, e.g. struct Type, class Type, etc.
fields: Vec<FieldUnit>
The fields of the struct
methods: Vec<FunctionUnit>
The methods implemented for the struct
source: Option<String>
The source code of the struct
Trait Implementations§
Source§impl Debug for StructUnit
impl Debug for StructUnit
Source§impl Default for StructUnit
impl Default for StructUnit
Source§fn default() -> StructUnit
fn default() -> StructUnit
Returns the “default value” for a type. Read more
Source§impl Formatter for StructUnit
impl Formatter for StructUnit
fn format( &self, strategy: &BankStrategy, language: LanguageType, ) -> Result<String>
Auto Trait Implementations§
impl Freeze for StructUnit
impl RefUnwindSafe for StructUnit
impl Send for StructUnit
impl Sync for StructUnit
impl Unpin for StructUnit
impl UnwindSafe for StructUnit
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