pub struct Array { /* private fields */ }Implementations§
Source§impl Array
impl Array
pub fn new<'a, I, T>(iter: I) -> Array
pub fn element_constructor(&self) -> &Constructor
Sourcepub fn decode<T: DecodeFormatted>(&self) -> Result<Vec<T>, AmqpParseError>
pub fn decode<T: DecodeFormatted>(&self) -> Result<Vec<T>, AmqpParseError>
Attempts to decode the array into a vector of type T. Format code supplied to T::decode_with_format is the format code of the underlying
AMQP type of array’s element constructor. Use Array::element_constructor to access full constructor if needed.
Trait Implementations§
Source§impl DecodeFormatted for Array
impl DecodeFormatted for Array
fn decode_with_format( input: &mut Bytes, fmt: u8, ) -> Result<Self, AmqpParseError>
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