XmlNodeCursorOps

cats.xml.XmlNodeSyntax.XmlNodeCursorOps
implicit class XmlNodeCursorOps(node: XmlNode)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def focus[X <: Xml](f: Root.type => Cursor[X]): Result[X]

Build and apply a Cursor to this XmlNode instance.

Build and apply a Cursor to this XmlNode instance.

Attributes

X

type of the focusing output

f

function to build the cursor

Returns:

Cursor result, Left when fails Right when succeed

def focus[T](f: Root.type => FreeCursor[Xml, T]): Result[T]

Build and apply a FreeCursor to this XmlNode instance.

Build and apply a FreeCursor to this XmlNode instance.

Attributes

T

type of the focusing output

f

function to build the cursor

Returns:

Cursor result, Left when fails Right when succeed