1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
use clojure::lang::*;
use clojure::rust::*;
use intertrait::*;

use crate::*;
castable_to!(SRSeq => [sync] IObject, ASeq, IndexedSeq, Counted);

pub struct SRSeq {
    v: Object, //&'a IPersistantVector,
    i: usize,
}

pub trait RSeq: IObject+ASeq+IndexedSeq+Counted {}

impl IObject for SRSeq {
    fn getClass<'a>(&self) -> &'a SClass { todo!() }

    fn hashCode(&self) -> usize { todo!() }

    fn toString(&self) -> String { todo!() }

    fn equals(
        &self,
        other: &Object,
    ) -> bool {
        todo!()
    }
}

impl IObj for SRSeq {
    fn withMeta(
        &self,
        meta: &Object,
    ) -> ObjResult<Object> {
        todo!()
    }
}

impl ASeq for SRSeq {}

impl IMeta for SRSeq {
    fn meta(&self) -> ObjResult<Object> { todo!() }
}

impl IHashEq for SRSeq {
    fn hasheq(&self) -> ObjResult<usize> { todo!() }
}

impl Serializable for SRSeq {}

impl Sequential for SRSeq {}

impl Counted for SRSeq {
    fn count(&self) -> ObjResult<usize> { todo!() }
}

impl IndexedSeq for SRSeq {
    fn index(&self) -> ObjResult<usize> { todo!() }
}

impl Sequable for SRSeq {
    fn seq(&self) -> ObjResult<Object> { todo!() }
}

impl Iterable for SRSeq {
    fn iterator(&self) -> ObjResult<Object> { todo!() }
}

impl ISeq for SRSeq {
    fn cons(
        &self,
        o: &Object,
    ) -> ObjResult<Object> {
        todo!()
    }
}

impl List for SRSeq {}

impl IPersistentCollection for SRSeq {
    fn cons(
        &self,
        o: &Object,
    ) -> ObjResult<Object> {
        todo!()
    }

    fn count(&self) -> ObjResult<usize> { todo!() }

    fn empty(&self) -> ObjResult<Object> { todo!() }

    fn equiv(
        &self,
        o: Object,
    ) -> ObjResult<bool> {
        todo!()
    }
}

impl Collection for SRSeq {
    fn size(&self) -> usize { todo!() }

    fn isEmpty(&self) -> bool { todo!() }

    fn contains(&self) -> ObjResult<bool> { todo!() }

    fn toArray(&self) -> ObjResult<Vec<Object>> { todo!() }

    fn containsAll(
        &self,
        c: &Object,
    ) -> ObjResult<bool> {
        todo!()
    }
}