use Result;
use ;
use ;
use crate::;
/// Level-aware ciphertext copy.
///
/// Copies the polynomial data from `src` into `dst`, adjusting for any
/// mismatch between the source's precision and the destination's allocated
/// capacity.
///
/// # Metadata
///
/// ```text
/// offset = max(0, src.effective_k() − dst.max_k())
///
/// log_delta_out = src.log_delta
/// log_budget_out = src.log_budget − offset
/// ```
///
/// When `dst.max_k() >= src.effective_k()` the copy is lossless and
/// `offset = 0`. When `dst.max_k() < src.effective_k()`, the
/// most-significant bits that do not fit are silently dropped and
/// `log_budget` is reduced by the deficit.