# IntoSystem in maplibre::tcs::system::function - Rust
Conversion trait to turn something into a `System`.

# Trait maplibre::tcs::system::function::IntoSystem

source ·

    pub trait IntoSystem: Sized {
        type System: System;

        // Required method
        fn into_system(self) -> Self::System;
    }

Expand description

Conversion trait to turn something into a `System`.

Use this to get a system from a function. Also note that every system implements this trait as well.

## Required Associated Types§

source

#### type System: System

## Required Methods§

source

#### fn into_system(self) -> Self::System

Turns this value into its corresponding `System`.

## Object Safety§

This trait is not object safe.

## Implementors§

source §

### impl<F> IntoSystem for F
where F: FnMut(&mut MapContext) + 'static,

§

#### type System = FunctionSystem<F>