pub struct StructInfo {
pub name: String,
pub is_public: bool,
pub fields: Vec<String>,
pub derives: Vec<String>,
pub line_number: usize,
}Expand description
Information about a struct
Fields§
§name: StringName of the struct
is_public: boolWhether the struct is public
fields: Vec<String>Fields of the struct
derives: Vec<String>Derive attributes on the struct
line_number: usizeLine number where the struct is defined
Trait Implementations§
Source§impl Clone for StructInfo
impl Clone for StructInfo
Source§fn clone(&self) -> StructInfo
fn clone(&self) -> StructInfo
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 moreAuto Trait Implementations§
impl Freeze for StructInfo
impl RefUnwindSafe for StructInfo
impl Send for StructInfo
impl Sync for StructInfo
impl Unpin for StructInfo
impl UnwindSafe for StructInfo
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