rscel 1.0.8

Cel interpreter in rust
Documentation
use crate::macros::dispatch;

pub use methods::dispatch as size;

#[dispatch]
mod methods {
    use crate::{types::CelBytes, CelValue};

    fn size(this: String) -> u64 {
        this.len() as u64
    }

    fn size(this: CelBytes) -> u64 {
        this.len() as u64
    }

    fn size(this: Vec<CelValue>) -> u64 {
        this.len() as u64
    }

    fn size(arg: String) -> u64 {
        arg.len() as u64
    }

    fn size(arg: CelBytes) -> u64 {
        arg.len() as u64
    }

    fn size(arg: Vec<CelValue>) -> u64 {
        arg.len() as u64
    }
}