Struct xrust::transform::context::ContextBuilder
source · 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 current(self, s: Sequence<N>) -> Self
pub fn index(self, i: usize) -> 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: Value) -> Self
pub fn output_definition(self, od: OutputDefinition) -> Self
pub fn base_url(self, b: Url) -> Self
pub fn build(self) -> Context<N>
Trait Implementations§
Auto Trait Implementations§
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