pub fn all_hints_for_input(&self, index: usize) -> HintsBag {
        let mut hints: Vec<Hint> = Vec::new();
        let secret_bag = HintsBag::empty();
        let public_bag = HintsBag::empty();
        let secrets: &Vec<Hint> = &self.secret_hints.get(&index).unwrap_or(&secret_bag).hints;
        for hint in secrets {
            hints.push(hint.clone());
        }
        let public: &Vec<Hint> = &self.public_hints.get(&index).unwrap_or(&public_bag).hints;
        for hint in public {
            hints.push(hint.clone());
        }
        let hints_bag: HintsBag = HintsBag { hints };
        hints_bag
    }
/// Outputting HintsBag corresponding for an index
Outputting HintsBag corresponding for an index
Outputting HintsBag corresponding for an index
pub fn all_hints_for_input(&self, index: usize) -> HintsBag {
        let mut hints: Vec<Hint> = Vec::new();
        let secret_bag = HintsBag::empty();
        let public_bag = HintsBag::empty();
        let secrets: &Vec<Hint> = &self.secret_hints.get(&index).unwrap_or(&secret_bag).hints;
        for hint in secrets {
            hints.push(hint.clone());
        }
        let public: &Vec<Hint> = &self.public_hints.get(&index).unwrap_or(&public_bag).hints;
        for hint in public {
            hints.push(hint.clone());
        }
        let hints_bag: HintsBag = HintsBag { hints };
        hints_bag
    }
pub fn all_hints_for_input ( & self , index : usize ) -> HintsBag { let mut hints : Vec < Hint > = Vec :: new ( ) ; let secret_bag = HintsBag :: empty ( ) ; let public_bag = HintsBag :: empty ( ) ; let secrets : & Vec < Hint > = & self . secret_hints . get ( & index ) . unwrap_or ( & secret_bag ) . hints ; for hint in secrets { hints . push ( hint . clone ( ) ) ; } let public : & Vec < Hint > = & self . public_hints . get ( & index ) . unwrap_or ( & public_bag ) . hints ; for hint in public { hints . push ( hint . clone ( ) ) ; } let hints_bag : HintsBag = HintsBag { hints } ; hints_bag }
Outputting HintsBag corresponding for an index
Outputting HintsBag corresponding for an index
&self
index
usize
&self
index
usize