#[repr(C)]pub struct JustifyItems(pub ItemPlacement);Expand description
Value of the justify-items property
Tuple Fields§
§0: ItemPlacementImplementations§
Methods from Deref<Target = AlignFlags>§
Sourcepub fn bits(&self) -> u8
pub fn bits(&self) -> u8
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
Sourcepub fn intersects(&self, other: Self) -> bool
pub fn intersects(&self, other: Self) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
Sourcepub fn contains(&self, other: Self) -> bool
pub fn contains(&self, other: Self) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
Sourcepub fn intersection(self, other: Self) -> Self
pub fn intersection(self, other: Self) -> Self
The bitwise and (&) of the bits in two flags values.
Sourcepub fn difference(self, other: Self) -> Self
pub fn difference(self, other: Self) -> Self
The intersection of a source flags value with the complement of a target flags
value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Sourcepub fn symmetric_difference(self, other: Self) -> Self
pub fn symmetric_difference(self, other: Self) -> Self
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub fn complement(self) -> Self
pub fn complement(self) -> Self
The bitwise negation (!) of the bits in a flags value, truncating the result.
Sourcepub fn iter(&self) -> Iter<AlignFlags> ⓘ
pub fn iter(&self) -> Iter<AlignFlags> ⓘ
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
Sourcepub fn iter_names(&self) -> IterNames<AlignFlags> ⓘ
pub fn iter_names(&self) -> IterNames<AlignFlags> ⓘ
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Sourcepub fn with_value(&self, value: AlignFlags) -> Self
pub fn with_value(&self, value: AlignFlags) -> Self
Returns an updated value with the same flags.
Trait Implementations§
Source§impl Clone for JustifyItems
impl Clone for JustifyItems
impl Copy for JustifyItems
Source§impl Debug for JustifyItems
impl Debug for JustifyItems
Source§impl Deref for JustifyItems
impl Deref for JustifyItems
Source§impl<'de> Deserialize<'de> for JustifyItems
impl<'de> Deserialize<'de> for JustifyItems
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>,
impl Eq for JustifyItems
Source§impl MallocSizeOf for JustifyItems
impl MallocSizeOf for JustifyItems
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Source§impl Parse for JustifyItems
impl Parse for JustifyItems
Source§fn parse(
context: &ParserContext<'_>,
input: &mut Parser<'_>,
) -> Result<Self, ParseError>
fn parse( context: &ParserContext<'_>, input: &mut Parser<'_>, ) -> Result<Self, ParseError>
Source§impl PartialEq for JustifyItems
impl PartialEq for JustifyItems
Source§impl Serialize for JustifyItems
impl Serialize for JustifyItems
Source§impl SpecifiedValueInfo for JustifyItems
impl SpecifiedValueInfo for JustifyItems
Source§fn collect_completion_keywords(f: KeywordsCollectFn<'_>)
fn collect_completion_keywords(f: KeywordsCollectFn<'_>)
Source§const SUPPORTED_TYPES: u8 = 0
const SUPPORTED_TYPES: u8 = 0
impl StructuralPartialEq for JustifyItems
Source§impl ToComputedValue for JustifyItems
impl ToComputedValue for JustifyItems
Source§fn to_computed_value(&self, _context: &Context<'_>) -> JustifyItems
fn to_computed_value(&self, _context: &Context<'_>) -> JustifyItems
Source§type ComputedValue = ComputedJustifyItems
type ComputedValue = ComputedJustifyItems
Source§fn from_computed_value(computed: &JustifyItems) -> Self
fn from_computed_value(computed: &JustifyItems) -> Self
Source§impl ToCss for JustifyItems
impl ToCss for JustifyItems
Source§fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
W: Write,
fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
W: Write,
self in CSS syntax, writing to dest.Source§fn to_css_string(&self) -> String
fn to_css_string(&self) -> String
self in CSS syntax and return a string. Read moreSource§fn to_css_cssstring(&self) -> String
fn to_css_cssstring(&self) -> String
self in CSS syntax and return a CssString. Read moreSource§impl ToResolvedValue for JustifyItems
impl ToResolvedValue for JustifyItems
Source§type ResolvedValue = JustifyItems
type ResolvedValue = JustifyItems
Source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
Source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Source§impl ToShmem for JustifyItems
impl ToShmem for JustifyItems
Source§impl ToTyped for JustifyItemswhere
ItemPlacement: ToTyped,
impl ToTyped for JustifyItemswhere
ItemPlacement: ToTyped,
Source§fn to_typed_value(&self) -> Option<TypedValue>
fn to_typed_value(&self) -> Option<TypedValue>
Source§fn to_numeric_value(&self) -> Option<NumericValue>
fn to_numeric_value(&self) -> Option<NumericValue>
Source§fn to_typed_value_list(&self) -> Option<TypedValueList>
fn to_typed_value_list(&self) -> Option<TypedValueList>
Auto Trait Implementations§
impl Freeze for JustifyItems
impl RefUnwindSafe for JustifyItems
impl Send for JustifyItems
impl Sync for JustifyItems
impl Unpin for JustifyItems
impl UnsafeUnpin for JustifyItems
impl UnwindSafe for JustifyItems
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more