use crate::prelude::*;
use std::fmt;
#[derive(Clone)]
pub struct ByStructStmt {
pub struct_obj: Obj,
pub line_file: LineFile,
}
impl fmt::Display for ByStructStmt {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{} {}{} {}", BY, STRUCT, COLON, self.struct_obj)
}
}
impl ByStructStmt {
pub fn new(struct_obj: Obj, line_file: LineFile) -> Self {
ByStructStmt {
struct_obj,
line_file,
}
}
}