pub struct RustStruct { /* private fields */ }Implementations§
Source§impl RustStruct
impl RustStruct
pub fn name(&self) -> &Ident
pub fn fields(&self) -> &Vec<(Ident, RustType)>
Sourcepub fn uses(&self) -> HashSet<Ident>
pub fn uses(&self) -> HashSet<Ident>
Returns a list of all the structs that this struct references
Sourcepub fn resolve(&mut self, ctxt: &ProgramTypeContext) -> HashSet<Ident>
pub fn resolve(&mut self, ctxt: &ProgramTypeContext) -> HashSet<Ident>
Resolves a structs types, and returns the list of type names it references
Trait Implementations§
Source§impl Clone for RustStruct
impl Clone for RustStruct
Source§fn clone(&self) -> RustStruct
fn clone(&self) -> RustStruct
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 moreSource§impl Debug for RustStruct
impl Debug for RustStruct
Source§impl Display for RustStruct
impl Display for RustStruct
Source§impl From<ItemStruct> for RustStruct
impl From<ItemStruct> for RustStruct
Source§fn from(i: ItemStruct) -> Self
fn from(i: ItemStruct) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RustStruct
impl RefUnwindSafe for RustStruct
impl !Send for RustStruct
impl !Sync for RustStruct
impl Unpin for RustStruct
impl UnwindSafe for RustStruct
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