Struct sxd_xpath::function::Args [] [src]

pub struct Args<'d>(pub Vec<Value<'d>>);

Provides common utility functions for dealing with function argument lists.

Methods

impl<'d> Args<'d>
[src]

Ensures that there are at least the requested number of arguments.

Ensures that there are no more than the requested number of arguments.

Ensures that there are exactly the requested number of arguments.

Removes the last argument and ensures it is a boolean. If the argument is not a boolean, a type mismatch error is returned.

Removes the last argument and ensures it is a number. If the argument is not a number, a type mismatch error is returned.

Removes the last argument and ensures it is a string. If the argument is not a string, a type mismatch error is returned.

Removes the last argument and ensures it is a nodeset. If the argument is not a nodeset, a type mismatch error is returned.

Trait Implementations

impl<'d> Index<usize> for Args<'d>
[src]

The returned type after indexing

The method for the indexing (container[index]) operation