pub struct ScalaObject {
pub name: String,
pub extends_list: Vec<String>,
pub methods: Vec<ScalaMethod>,
pub constants: Vec<(String, ScalaType, ScalaExpr)>,
}Expand description
A Scala object declaration (companion or standalone).
Fields§
§name: StringObject name
extends_list: Vec<String>Extends list
methods: Vec<ScalaMethod>Methods
constants: Vec<(String, ScalaType, ScalaExpr)>Constants / val definitions: (name, type, expr)
Trait Implementations§
Source§impl Clone for ScalaObject
impl Clone for ScalaObject
Source§fn clone(&self) -> ScalaObject
fn clone(&self) -> ScalaObject
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 ScalaObject
impl Debug for ScalaObject
Source§impl Display for ScalaObject
impl Display for ScalaObject
Source§impl PartialEq for ScalaObject
impl PartialEq for ScalaObject
impl StructuralPartialEq for ScalaObject
Auto Trait Implementations§
impl Freeze for ScalaObject
impl RefUnwindSafe for ScalaObject
impl Send for ScalaObject
impl Sync for ScalaObject
impl Unpin for ScalaObject
impl UnsafeUnpin for ScalaObject
impl UnwindSafe for ScalaObject
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