Struct python_ast::tree::expression::Container
source · #[repr(transparent)]pub struct Container<T>(pub T);
Expand description
Mostly this shouldn’t be used, but it exists so that we don’t have to manually implement FromPyObject on all of ExprType
Tuple Fields§
§0: T
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for Container<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Container<T>where
T: Deserialize<'de>,
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<T: PartialEq> PartialEq for Container<T>
impl<T: PartialEq> PartialEq for Container<T>
impl<T> StructuralPartialEq for Container<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Container<T>where
T: RefUnwindSafe,
impl<T> Send for Container<T>where
T: Send,
impl<T> Sync for Container<T>where
T: Sync,
impl<T> Unpin for Container<T>where
T: Unpin,
impl<T> UnwindSafe for Container<T>where
T: UnwindSafe,
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