pub struct LazyColumnArgsBuilder { /* private fields */ }Expand description
Builder for LazyColumnArgs.
Implementations§
Source§impl LazyColumnArgsBuilder
impl LazyColumnArgsBuilder
Sourcepub fn scrollable(self, value: ScrollableArgs) -> Self
pub fn scrollable(self, value: ScrollableArgs) -> Self
Scroll container arguments. Vertical scrolling is enforced.
Sourcepub fn cross_axis_alignment(self, value: CrossAxisAlignment) -> Self
pub fn cross_axis_alignment(self, value: CrossAxisAlignment) -> Self
How children are aligned along the cross axis (horizontal for columns).
Sourcepub fn item_spacing(self, value: Dp) -> Self
pub fn item_spacing(self, value: Dp) -> Self
Gap between successive items.
Sourcepub fn overscan(self, value: usize) -> Self
pub fn overscan(self, value: usize) -> Self
Number of extra items instantiated before/after the viewport.
Sourcepub fn estimated_item_size(self, value: Dp) -> Self
pub fn estimated_item_size(self, value: Dp) -> Self
Estimated main-axis size for each item, used before real measurements exist.
Sourcepub fn content_padding(self, value: Dp) -> Self
pub fn content_padding(self, value: Dp) -> Self
Symmetric padding applied around the lazy list content.
Sourcepub fn max_viewport_main(self, value: Option<Px>) -> Self
pub fn max_viewport_main(self, value: Option<Px>) -> Self
Maximum viewport length reported back to parents. Prevents gigantic textures when nesting the list inside wrap/auto-sized surfaces.
Sourcepub fn build(self) -> Result<LazyColumnArgs, LazyColumnArgsBuilderError>
pub fn build(self) -> Result<LazyColumnArgs, LazyColumnArgsBuilderError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LazyColumnArgsBuilder
impl RefUnwindSafe for LazyColumnArgsBuilder
impl Send for LazyColumnArgsBuilder
impl Sync for LazyColumnArgsBuilder
impl Unpin for LazyColumnArgsBuilder
impl UnwindSafe for LazyColumnArgsBuilder
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().