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: bounds.rs
    path of file: ./repos/gdnative/gdnative-derive/src/variant
    
    the code of the file until where you have to start completion: use syn::punctuated::Punctuated;
use syn::visit::Visit;
use syn::{GenericParam, Generics};

use crate::utils::extend_bounds::{with_visitor, BoundsVisitor};
use crate::variant::repr::StructRepr;

use super::repr::{EnumRepr, Field, Repr, VariantRepr};
use super::Direction;

pub(crate) fn extend_bounds(
    generics: Generics,
    repr: &Repr,
    bound: &syn::Path,
    dir: Direction,
) -> Generics {
    with_visitor(generics, Some(bound), None, |visitor| {
    
pub(crate) fn remove_bounds(mut generics: Generics) -> Generics {
    for param in generics.params.iter_mut() {
        match param {
            GenericParam::Type(ty) => {
                ty.colon_token = None;
                ty.bounds = Punctuated::new();
            }
            GenericParam::Lifetime(lt) => {
                lt.colon_token = None;
                lt.bounds = Punctuated::new();
            }
            GenericParam::Const(_) => {}
        }
    }
    generics
}