HeadingLevel

zio.blocks.docs.HeadingLevel
See theHeadingLevel companion class
object HeadingLevel

Attributes

Companion
class
Source
HeadingLevel.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case object H1 extends HeadingLevel

Heading level 1 (# ).

Heading level 1 (# ).

Attributes

Source
HeadingLevel.scala
Supertypes
trait Singleton
trait Product
trait Mirror
class HeadingLevel
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
H1.type
case object H2 extends HeadingLevel

Heading level 2 (## ).

Heading level 2 (## ).

Attributes

Source
HeadingLevel.scala
Supertypes
trait Singleton
trait Product
trait Mirror
class HeadingLevel
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
H2.type
case object H3 extends HeadingLevel

Heading level 3 (### ).

Heading level 3 (### ).

Attributes

Source
HeadingLevel.scala
Supertypes
trait Singleton
trait Product
trait Mirror
class HeadingLevel
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
H3.type
case object H4 extends HeadingLevel

Heading level 4 (#### ).

Heading level 4 (#### ).

Attributes

Source
HeadingLevel.scala
Supertypes
trait Singleton
trait Product
trait Mirror
class HeadingLevel
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
H4.type
case object H5 extends HeadingLevel

Heading level 5 (##### ).

Heading level 5 (##### ).

Attributes

Source
HeadingLevel.scala
Supertypes
trait Singleton
trait Product
trait Mirror
class HeadingLevel
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
H5.type
case object H6 extends HeadingLevel

Heading level 6 (###### ).

Heading level 6 (###### ).

Attributes

Source
HeadingLevel.scala
Supertypes
trait Singleton
trait Product
trait Mirror
class HeadingLevel
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
H6.type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def fromInt(n: Int): Option[HeadingLevel]

Safely construct a heading level from an integer.

Safely construct a heading level from an integer.

Value parameters

n

The heading level (must be 1-6)

Attributes

Returns

Some(level) if n is 1-6, None otherwise

Source
HeadingLevel.scala

Construct a heading level from an integer, throwing on invalid input.

Construct a heading level from an integer, throwing on invalid input.

Value parameters

n

The heading level (must be 1-6)

Attributes

Returns

The heading level

Throws
Source
HeadingLevel.scala