pub fn policy_index(&self) -> Option<u64> {
        if self.policy.is_empty() {
            None
        } else {
            Some((self.policy.len() - 1) as u64)
        }
    }
/// Returns the index of last policy if there is at least a Policy.
Returns the index of last policy if there is at least a Policy.
Returns the index of last policy if there is at least a Policy .
pub fn policy_index(&self) -> Option<u64> {
        if self.policy.is_empty() {
            None
        } else {
            Some((self.policy.len() - 1) as u64)
        }
    }
pub fn policy_index ( & self ) -> Option < u64 > { if self . policy . is_empty ( ) { None } else { Some ( ( self . policy . len ( ) - 1 ) as u64 ) } }
Returns the index of last policy if there is at least a Policy.
Returns the index of last policy if there is at least a Policy .
&self
&self