pub struct ContextBuilder<N: Node>(/* private fields */);
Expand description
Builder for a Context
Implementations§
Source§impl<N: Node> ContextBuilder<N>
impl<N: Node> ContextBuilder<N>
pub fn new() -> Self
pub fn context(self, s: Sequence<N>) -> Self
pub fn index(self, i: usize) -> Self
pub fn previous_context(self, i: Option<Item<N>>) -> Self
pub fn depth(self, d: usize) -> Self
pub fn variable(self, n: String, v: Sequence<N>) -> Self
pub fn variables(self, v: HashMap<String, Vec<Sequence<N>>>) -> Self
pub fn result_document(self, rd: N) -> Self
pub fn template(self, t: Template<N>) -> Self
pub fn template_all(self, v: Vec<Template<N>>) -> Self
pub fn current_templates(self, c: Vec<Rc<Template<N>>>) -> Self
pub fn current_group(self, c: Sequence<N>) -> Self
pub fn current_grouping_key(self, k: Rc<Value>) -> Self
pub fn output_definition(self, od: OutputDefinition) -> Self
pub fn base_url(self, b: Url) -> Self
pub fn callable(self, qn: QualifiedName, c: Callable<N>) -> Self
pub fn build(self) -> Context<N>
Trait Implementations§
Auto Trait Implementations§
impl<N> Freeze for ContextBuilder<N>where
N: Freeze,
impl<N> RefUnwindSafe for ContextBuilder<N>where
N: RefUnwindSafe,
impl<N> !Send for ContextBuilder<N>
impl<N> !Sync for ContextBuilder<N>
impl<N> Unpin for ContextBuilder<N>where
N: Unpin,
impl<N> UnwindSafe for ContextBuilder<N>where
N: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more