You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: floating_pane_grid.rs
    path of file: ./repos/zellij/zellij-server/src/panes/floating_panes
    
    the code of the file until where you have to start completion: use crate::tab::{MIN_TERMINAL_HEIGHT, MIN_TERMINAL_WIDTH};
use crate::{panes::PaneId, tab::Pane};
use std::cmp::Ordering;
use std::collections::HashMap;
use zellij_utils::data::{Direction, ResizeStrategy};
use zellij_utils::errors::prelude::*;
use zellij_utils::pane_size::{Dimension, PaneGeom, Size, Viewport};

use std::cell::RefCell;
use std::rc::Rc;
    
    pub fn move_pane_up(&mut self, pane_id: &PaneId) -> Result<()> {
        let err_context = || format!("failed to move pane {pane_id:?} up");

        if let Some(move_by) = self
            .can_move_pane_up(pane_id, MOVE_INCREMENT_VERTICAL)
            .with_context(err_context)?
        {
            self.move_pane_position_up(pane_id, move_by)
                .with_context(err_context)?;
        }
        Ok(())
    }