fn assert_is_voting_state(&self) -> Result<(), ProgramError> {
        if self.state != ProposalState::Voting {
            return Err(GovernanceError::InvalidProposalState.into());
        }

        Ok(())
    }
/// Checks the Proposal is in Voting state
Checks the Proposal is in Voting state
Checks the Proposal is in Voting state
fn assert_is_voting_state(&self) -> Result<(), ProgramError> {
        if self.state != ProposalState::Voting {
            return Err(GovernanceError::InvalidProposalState.into());
        }
        Ok(())
    }
fn assert_is_voting_state ( & self ) -> Result < ( ) , ProgramError > { if self . state != ProposalState :: Voting { return Err ( GovernanceError :: InvalidProposalState . into ( ) ) ; } Ok ( ( ) ) }
Checks the Proposal is in Voting state
Checks the Proposal is in Voting state
&self
&self