pub struct Array {
pub left_bracket: Span,
pub elements: TokenSeparatedSequence<ArrayElement>,
pub right_bracket: Span,
}Expand description
Represents a standard PHP array, defined using square brackets [].
§Example:
<?php
$arr = ['apple', 'banana', 3 => 'orange'];Fields§
§left_bracket: Span§elements: TokenSeparatedSequence<ArrayElement>§right_bracket: SpanTrait Implementations§
Source§impl<'de> Deserialize<'de> for Array
impl<'de> Deserialize<'de> for Array
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Array
impl Ord for Array
Source§impl PartialOrd for Array
impl PartialOrd for Array
impl Eq for Array
impl StructuralPartialEq for Array
Auto Trait Implementations§
impl Freeze for Array
impl RefUnwindSafe for Array
impl Send for Array
impl Sync for Array
impl Unpin for Array
impl UnwindSafe for Array
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