Nullable::is_null
This commit is contained in:
parent
e3df6e523e
commit
5e85d06df6
@ -91,6 +91,13 @@ impl<'a, Ctx: Context<'a>, A: Mentionable<'a, Ctx>> Nullable<'a, Ctx, A> {
|
|||||||
Nullable::NotNull(point) => Some(point),
|
Nullable::NotNull(point) => Some(point),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn is_null(&self) -> bool {
|
||||||
|
match self {
|
||||||
|
Nullable::Null(_) => true,
|
||||||
|
Nullable::NotNull(_) => false,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<F> NullableFactory<F> {
|
impl<F> NullableFactory<F> {
|
||||||
|
Loading…
Reference in New Issue
Block a user