Interval.IntegerInterval (Interval v2.0.3)
View SourceRepresents a discrete interval containing Integer
Defines a struct with two fields, left and right, representing the left and right endpoints of the interval.
The endpoint fields are of type t:Interval.endpoint(Integer)
This module delegates most functionality to the Interval module.
Summary
Functions
Callback implementation for Interval.Behaviour.discrete?/0.
Callback implementation for Ecto.Type.embed_as/1.
Callback implementation for Ecto.Type.equal?/2.
Callback implementation for Interval.Behaviour.new/1.
Callback implementation for Interval.Behaviour.new/3.
Types
Functions
See Interval.adjacent?/2.
See Interval.contains?/2.
@spec discrete?() :: true
Callback implementation for Interval.Behaviour.discrete?/0.
Callback implementation for Ecto.Type.embed_as/1.
See Interval.empty?/1.
Callback implementation for Ecto.Type.equal?/2.
See Interval.format/1.
See Interval.left/1.
Callback implementation for Interval.Behaviour.new/1.
@spec new( left :: point() | nil | :unbounded | :empty, right :: point() | nil | :unbounded | :empty, bounds :: Interval.strbounds() | nil ) :: t()
Callback implementation for Interval.Behaviour.new/3.
See Interval.overlaps?/2.
See Interval.partition/2.
See Interval.right/1.
See Interval.union/2.