pub struct StructUnit {
pub name: String,
pub attributes: Vec<String>,
pub visibility: Visibility,
pub documentation: Option<String>,
pub head: String,
pub methods: Vec<FunctionUnit>,
pub source: Option<String>,
}Expand description
Represents a struct or class in the code
Fields§
§name: StringThe name of the struct
attributes: Vec<String>Attributes applied to the struct
visibility: VisibilityThe visibility of the struct
documentation: Option<String>The documentation for the struct
head: Stringstruct head, e.g. struct Type, class Type, etc.
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