Struct prolog_parser::string_list::StringList [−][src]
pub struct StringList { /* fields omitted */ }
Methods
impl StringList
[src]
impl StringList
pub fn new(s: String, expandable: bool) -> Self
[src]
pub fn new(s: String, expandable: bool) -> Self
pub fn is_expandable(&self) -> bool
[src]
pub fn is_expandable(&self) -> bool
pub fn set_expandable(&self)
[src]
pub fn set_expandable(&self)
pub fn set_non_expandable(&self)
[src]
pub fn set_non_expandable(&self)
pub fn push_char(&mut self, c: char) -> Self
[src]
pub fn push_char(&mut self, c: char) -> Self
pub fn append(&mut self, s: &StringList)
[src]
pub fn append(&mut self, s: &StringList)
pub fn cursor(&self) -> usize
[src]
pub fn cursor(&self) -> usize
pub fn head(&self) -> Option<char>
[src]
pub fn head(&self) -> Option<char>
pub fn tail(&self) -> Self
[src]
pub fn tail(&self) -> Self
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
pub fn borrow(&self) -> Ref<String>
[src]
pub fn borrow(&self) -> Ref<String>
Trait Implementations
impl Clone for StringList
[src]
impl Clone for StringList
fn clone(&self) -> StringList
[src]
fn clone(&self) -> StringList
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Hash for StringList
[src]
impl Hash for StringList
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialOrd for StringList
[src]
impl PartialOrd for StringList
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for StringList
[src]
impl Ord for StringList
fn cmp(&self, other: &Self) -> Ordering
[src]
fn cmp(&self, other: &Self) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialEq for StringList
[src]
impl PartialEq for StringList
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for StringList
[src]
impl Eq for StringList
Auto Trait Implementations
impl !Send for StringList
impl !Send for StringList
impl !Sync for StringList
impl !Sync for StringList