Add docstring for mutation(::Edit)

This commit is contained in:
Thomas A. Christensen II 2023-01-03 20:01:13 -06:00
parent 1f2b116518
commit 82ba838614

View file

@ -42,6 +42,12 @@ function Base.parse(::Type{<:Edit{Se,Sy}}, s::Union{String,SubString{String}}) w
end end
end end
"""
_mutation(e::Edit)
Returns the underlying [`Substitution`](@ref), [`Insertion`](@ref), or [`Deletion`](@ref) of
`e`.
"""
_mutation(e::Edit) = e.x _mutation(e::Edit) = e.x
BioGenerics.leftposition(e::Edit) = e.pos BioGenerics.leftposition(e::Edit) = e.pos
function BioGenerics.rightposition(e::Edit) function BioGenerics.rightposition(e::Edit)