pub enum RTk {
Show 14 variants
Prim(String),
Lit(Value),
Range {
lo: Value,
hi: Value,
excl: bool,
base: String,
},
Pattern {
src: String,
re: Regex,
},
Arr {
elem: RT,
lo: Option<i64>,
hi: Option<i64>,
},
Map {
key: RT,
val: RT,
},
Union(Vec<RT>),
IsectN(Vec<RT>),
Rec(RecType),
Pred {
base: RT,
preds: Vec<Rc<Expr>>,
},
Ref(RT),
Quantity(String),
Func {
params: Vec<RT>,
ret: RT,
},
Any,
}Variants§
Prim(String)
Lit(Value)
Range
Pattern
Arr
Map
Union(Vec<RT>)
IsectN(Vec<RT>)
Rec(RecType)
Pred
Ref(RT)
Quantity(String)
Func
Any
Auto Trait Implementations§
impl !Freeze for RTk
impl !RefUnwindSafe for RTk
impl !Send for RTk
impl !Sync for RTk
impl !UnwindSafe for RTk
impl Unpin for RTk
impl UnsafeUnpin for RTk
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more