slicec 0.4.0

The Slice parser and other core components for Slice compilers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) ZeroC, Inc.

use super::super::*;

#[derive(Debug)]
pub struct Sequence {
    pub element_type: TypeRef,
}

impl Type for Sequence {
    fn type_string(&self) -> String {
        format!("Sequence<{}>", self.element_type.type_string())
    }
}

implement_Element_for!(Sequence, "sequence");