mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-02-21 10:39:03 +01:00
This commit is contained in:
parent
7a8365c017
commit
b4ebdb8ff8
3 changed files with 1 additions and 4 deletions
|
|
@ -15,7 +15,7 @@ pub(crate) use std::ops::{Add, Sub, Mul, Div};
|
||||||
pub(crate) use std::sync::{Arc, RwLock, atomic::{AtomicUsize, Ordering::Relaxed}};
|
pub(crate) use std::sync::{Arc, RwLock, atomic::{AtomicUsize, Ordering::Relaxed}};
|
||||||
pub(crate) use std::marker::PhantomData;
|
pub(crate) use std::marker::PhantomData;
|
||||||
pub(crate) use dizzle::*;
|
pub(crate) use dizzle::*;
|
||||||
pub(crate) use quanta::Clock;
|
//pub(crate) use quanta::Clock;
|
||||||
pub(crate) use atomic_float::AtomicF64;
|
pub(crate) use atomic_float::AtomicF64;
|
||||||
|
|
||||||
// Define macros first, so that private macros are available in private modules:
|
// Define macros first, so that private macros are available in private modules:
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
use crate::*;
|
use crate::*;
|
||||||
use Direction::*;
|
|
||||||
use Alignment::*;
|
use Alignment::*;
|
||||||
|
|
||||||
impl Coord for u16 {
|
impl Coord for u16 {
|
||||||
|
|
|
||||||
|
|
@ -76,8 +76,6 @@ pub trait View<O, U> {
|
||||||
Err(format!("View::view_word: no words defined: {word:?}").into())
|
Err(format!("View::view_word: no words defined: {word:?}").into())
|
||||||
}
|
}
|
||||||
fn view <'a> (&'a self, output: &mut O, dsl: &'a impl Language) -> Usually<U> {
|
fn view <'a> (&'a self, output: &mut O, dsl: &'a impl Language) -> Usually<U> {
|
||||||
let is_expr = dsl.expr();
|
|
||||||
let is_word = dsl.word();
|
|
||||||
match (dsl.expr(), dsl.word()) {
|
match (dsl.expr(), dsl.word()) {
|
||||||
(Ok(Some(e)), _ ) => self.view_expr(output, &e),
|
(Ok(Some(e)), _ ) => self.view_expr(output, &e),
|
||||||
(_, Ok(Some(w))) => self.view_word(output, &w),
|
(_, Ok(Some(w))) => self.view_word(output, &w),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue