pub struct StringArray {
pub span: Span,
pub elements: Vec<SpannedString>,
}
Expand description
A string array (ex. [“executable”, “param1”, “param2”])
Fields§
§span: Span
§elements: Vec<SpannedString>
Implementations§
Source§impl StringArray
impl StringArray
pub fn as_str_vec(&self) -> Vec<&str>
Trait Implementations§
Source§impl Clone for StringArray
impl Clone for StringArray
Source§fn clone(&self) -> StringArray
fn clone(&self) -> StringArray
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StringArray
impl Debug for StringArray
Source§impl Ord for StringArray
impl Ord for StringArray
Source§fn cmp(&self, other: &StringArray) -> Ordering
fn cmp(&self, other: &StringArray) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StringArray
impl PartialEq for StringArray
Source§impl PartialOrd for StringArray
impl PartialOrd for StringArray
impl Eq for StringArray
impl StructuralPartialEq for StringArray
Auto Trait Implementations§
impl Freeze for StringArray
impl RefUnwindSafe for StringArray
impl Send for StringArray
impl Sync for StringArray
impl Unpin for StringArray
impl UnwindSafe for StringArray
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