Starting a type casting trait
This commit is contained in:
@@ -9,6 +9,7 @@ use crate::renderer::context_element::IceResult;
|
||||
use crate::renderer::context_element::IntoContextElement;
|
||||
use crate::renderer::math::MathNumber;
|
||||
use crate::renderer::walking::walk_path;
|
||||
use crate::renderer::Castable;
|
||||
use crate::renderer::DustRenderer;
|
||||
use crate::renderer::Loopable;
|
||||
use crate::renderer::RenderError;
|
||||
@@ -167,6 +168,12 @@ impl Walkable for OwnedLiteral {
|
||||
}
|
||||
}
|
||||
|
||||
impl Castable for OwnedLiteral {
|
||||
fn cast_to_type<'a>(&'a self, target: &str) -> Option<IceResult<'a>> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
impl CompareContextElement for OwnedLiteral {
|
||||
fn equals(&self, other: &dyn ContextElement) -> bool {
|
||||
// If its an OwnedLiteral then compare them directly,
|
||||
|
||||
Reference in New Issue
Block a user