pub fn as_array(&self) -> Vec<ValueValidator> {
        match &self.value {
            ast::Expression::Array(values, _) => {
                let mut validators: Vec<ValueValidator> = Vec::new();

                for value in values {
                    validators.push(ValueValidator::new(value));
                }

                validators
            }
            _ => vec![ValueValidator {
                value: self.value.clone(),
            }],
        }
    }
/// Unwraps the wrapped value as a constant literal..
Unwraps the wrapped value as a constant literal
Unwraps the wrapped value as a constant literal
pub fn as_array(&self) -> Vec<ValueValidator> {
        match &self.value {
            ast::Expression::Array(values, _) => {
                let mut validators: Vec<ValueValidator> = Vec::new();
                for value in values {
                    validators.push(ValueValidator::new(value));
                }
                validators
            }
            _ => vec![ValueValidator {
                value: self.value.clone(),
            }],
        }
    }
pub fn as_array ( & self ) -> Vec < ValueValidator > { match & self . value { ast :: Expression :: Array ( values , _ ) => { let mut validators : Vec < ValueValidator > = Vec :: new ( ) ; for value in values { validators . push ( ValueValidator :: new ( value ) ) ; } validators } _ => vec ! [ ValueValidator { value self value clone ( ) } ] , } }
Unwraps the wrapped value as a constant literal..
Unwraps the wrapped value as a constant literal ..
&self
&self