struct CycleSearch {
visits: HashMap<NodeId, Visit>,
templates: HashMap<NodeId, NodeId>,
chain: Vec<NodeId>,
circular_references: HashSet<(NodeId, AId)>,
}Fields§
§visits: HashMap<NodeId, Visit>§templates: HashMap<NodeId, NodeId>§chain: Vec<NodeId>§circular_references: HashSet<(NodeId, AId)>Implementations§
Source§impl CycleSearch
impl CycleSearch
fn visit(&mut self, node: SvgNode<'_, '_>)
Sourcefn with_content<'a, 'input: 'a>(
&mut self,
node: SvgNode<'a, 'input>,
) -> SvgNode<'a, 'input>
fn with_content<'a, 'input: 'a>( &mut self, node: SvgNode<'a, 'input>, ) -> SvgNode<'a, 'input>
Returns the first element in the xlink:href chain of a pattern or filter that has
children, since its children are used instead. Elements sharing a template are resolved to
the same element, so its content is only walked once, and results are cached along the
chain.
Trait Implementations§
Source§impl Default for CycleSearch
impl Default for CycleSearch
Source§fn default() -> CycleSearch
fn default() -> CycleSearch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CycleSearch
impl RefUnwindSafe for CycleSearch
impl Send for CycleSearch
impl Sync for CycleSearch
impl Unpin for CycleSearch
impl UnsafeUnpin for CycleSearch
impl UnwindSafe for CycleSearch
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