pub struct RowCopier<'a> {
pub owner_layer: i64,
pub skip: HashSet<(String, String)>,
pub new_externals: Vec<(String, Vec<u8>)>,
/* private fields */
}Expand description
Copies rows, and everything they link to, from one file’s database to another’s.
Fields§
§owner_layer: i64The layer id written into layer-owned columns.
skip: HashSet<(String, String)>(table, column) values copied unchanged (links not followed).
new_externals: Vec<(String, Vec<u8>)>External chunks copied so far, to be stored in the target file.
Implementations§
Source§impl<'a> RowCopier<'a>
impl<'a> RowCopier<'a>
Sourcepub fn new(
source: &'a ClipFile,
payload_hook: Option<&'a PayloadHook<'a>>,
canvas_id: i64,
) -> Result<Self>
pub fn new( source: &'a ClipFile, payload_hook: Option<&'a PayloadHook<'a>>, canvas_id: i64, ) -> Result<Self>
A copier reading from source. payload_hook rewrites external payloads as they are copied; canvas_id is the target’s Canvas.MainId.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RowCopier<'a>
impl<'a> !Send for RowCopier<'a>
impl<'a> !Sync for RowCopier<'a>
impl<'a> !UnwindSafe for RowCopier<'a>
impl<'a> Freeze for RowCopier<'a>
impl<'a> Unpin for RowCopier<'a>
impl<'a> UnsafeUnpin for RowCopier<'a>
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