diff --git a/previews/PR112/.documenter-siteinfo.json b/previews/PR112/.documenter-siteinfo.json index 3edf602..2d25f06 100644 --- a/previews/PR112/.documenter-siteinfo.json +++ b/previews/PR112/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.11.1","generation_timestamp":"2024-10-17T23:18:54","documenter_version":"1.7.0"}} \ No newline at end of file +{"documenter":{"julia_version":"1.11.1","generation_timestamp":"2024-10-17T23:20:01","documenter_version":"1.7.0"}} \ No newline at end of file diff --git a/previews/PR112/index.html b/previews/PR112/index.html index 4397bd7..35913b0 100644 --- a/previews/PR112/index.html +++ b/previews/PR112/index.html @@ -5,7 +5,7 @@ julia> struct B end; -julia> @sumtype AB(A, B)source
LightSumTypes.variantFunction
variant(inst)

Returns the variant enclosed in the sum type.

Example

julia> using LightSumTypes
+julia> @sumtype AB(A, B)
source
LightSumTypes.variantFunction
variant(inst)

Returns the variant enclosed in the sum type.

Example

julia> using LightSumTypes
 
 julia> struct A x::Int end;
 
@@ -17,7 +17,7 @@
 AB'.A(0)
 
 julia> variant(a)
-A(0)
source
LightSumTypes.allvariantsFunction
allvariants(SumType)

Returns all the enclosed variants types in the sum type in a namedtuple.

Example

julia> using LightSumTypes
+A(0)
source
LightSumTypes.allvariantsFunction
allvariants(SumType)

Returns all the enclosed variants types in the sum type in a namedtuple.

Example

julia> using LightSumTypes
 
 julia> struct A x::Int end;
 
@@ -26,4 +26,4 @@
 julia> @sumtype AB(A, B)
 
 julia> allvariants(AB)
-(A = A, B = B)
source
LightSumTypes.variantofFunction
variantof(inst)

Returns the type of the variant enclosed in the sum type.

source
LightSumTypes.is_sumtypeFunction
is_sumtype(T)

Returns true if the type is a sum type otherwise returns false.

source
+(A = A, B = B)source
LightSumTypes.variantofFunction
variantof(inst)

Returns the type of the variant enclosed in the sum type.

source
LightSumTypes.is_sumtypeFunction
is_sumtype(T)

Returns true if the type is a sum type otherwise returns false.

source
diff --git a/previews/PR112/objects.inv b/previews/PR112/objects.inv index 38a0f22..8dba75e 100644 --- a/previews/PR112/objects.inv +++ b/previews/PR112/objects.inv @@ -1,5 +1,5 @@ # Sphinx inventory version 2 # Project: LightSumTypes.jl -# Version: 4.1.0 +# Version: 4.2.0 # The remainder of this file is compressed using zlib. xKIP(.IJOV5TPp bXNbRjHTYEA'3=$47 X,(31D!+*4/$3?OĜbŠKsK,|2T%&0E3 4lJk^[ \ No newline at end of file