pub struct Transfer { /* private fields */ }Implementations§
Source§impl Transfer
impl Transfer
pub fn new(items: Vec<TransferItem>) -> Self
pub fn id(self, id: impl Into<SharedString>) -> Self
pub fn target_keys( self, keys: impl IntoIterator<Item = impl Into<SharedString>>, ) -> Self
pub fn checked_source_keys( self, keys: impl IntoIterator<Item = impl Into<SharedString>>, ) -> Self
pub fn checked_target_keys( self, keys: impl IntoIterator<Item = impl Into<SharedString>>, ) -> Self
pub fn titles( self, source: impl Into<SharedString>, target: impl Into<SharedString>, ) -> Self
pub fn filterable(self, filterable: bool) -> Self
pub fn source_filter(self, query: impl Into<SharedString>) -> Self
pub fn target_filter(self, query: impl Into<SharedString>) -> Self
pub fn empty_text(self, text: impl Into<SharedString>) -> Self
pub fn width(self, width: impl Into<Pixels>) -> Self
pub fn width_lg(self) -> Self
pub fn height(self, height: impl Into<Pixels>) -> Self
pub fn on_change( self, f: impl Fn(Vec<SharedString>, &mut Window, &mut App) + 'static, ) -> Self
pub fn set_target_keys( &mut self, keys: impl IntoIterator<Item = impl Into<SharedString>>, )
pub fn filter_items(items: &[TransferItem], query: &str) -> Vec<SharedString>
pub fn move_to_target( items: &[TransferItem], target_keys: &mut Vec<SharedString>, checked_source_keys: &mut Vec<SharedString>, ) -> Vec<SharedString>
pub fn move_to_source( items: &[TransferItem], target_keys: &mut Vec<SharedString>, checked_target_keys: &mut Vec<SharedString>, ) -> Vec<SharedString>
pub fn move_to_target_with_checked( items: &[TransferItem], target_keys: &mut Vec<SharedString>, checked_source_keys: &mut Vec<SharedString>, checked_target_keys: &mut Vec<SharedString>, ) -> Vec<SharedString>
pub fn move_to_source_with_checked( items: &[TransferItem], target_keys: &mut Vec<SharedString>, checked_target_keys: &mut Vec<SharedString>, checked_source_keys: &mut Vec<SharedString>, ) -> Vec<SharedString>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Transfer
impl !Send for Transfer
impl !Sync for Transfer
impl !UnwindSafe for Transfer
impl Freeze for Transfer
impl Unpin for Transfer
impl UnsafeUnpin for Transfer
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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