struct My_Struct{
vec: Vec<usize>,
len: usize,
}
let mut test_struct = My_Struct {
vec: vector,
len: test_q.queue.len(),
};
fn main()
{
#[derive(Debug)]
struct MyStruct {
vec: Vec<usize>,
len: usize,
}
let vector = vec![];
let mut test_struct = MyStruct {
len: vector.len(),
vec: vector,
};
println!("{:?}", test_struct);
}