pub struct StructExpr { /* private fields */ }
Implementations§
Source§impl StructExpr
impl StructExpr
pub fn new(name: String, props: HashMap<String, ExprNode>) -> Self
pub fn get_name(&self) -> &str
pub fn get_props(&self) -> &HashMap<String, ExprNode>
pub fn has_generic(&self) -> bool
pub fn get_generics(&self) -> &Vec<Type>
pub fn with_generics(self, generics: Vec<Type>) -> Self
Trait Implementations§
Source§impl Clone for StructExpr
impl Clone for StructExpr
Source§fn clone(&self) -> StructExpr
fn clone(&self) -> StructExpr
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 StructExpr
impl RefUnwindSafe for StructExpr
impl Send for StructExpr
impl Sync for StructExpr
impl Unpin for StructExpr
impl UnwindSafe for StructExpr
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