\hypertarget{a09728}{}\section{pybind11\+:\+:detail\+:\+:type\+\_\+caster$<$ Data\+Type $>$ Struct Template Reference}
\label{a09728}\index{pybind11\+::detail\+::type\+\_\+caster$<$ Data\+Type $>$@{pybind11\+::detail\+::type\+\_\+caster$<$ Data\+Type $>$}}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a09728_a397c89879103867701df125360544f1c}{P\+Y\+B\+I\+N\+D11\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+A\+S\+T\+ER} (\hyperlink{a07048}{Data\+Type}, \+\_\+(\char`\"{}Data\+Type\char`\"{}))
\item 
bool \hyperlink{a09728_a36d8c8ed83c4df824925c46e0d19c1a0}{load} (handle src, bool)
\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static handle \hyperlink{a09728_acbb75d24354df62fc7e9612ffb63d613}{cast} (\hyperlink{a07048}{Data\+Type} src, return\+\_\+value\+\_\+policy, handle)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$$>$\newline
struct pybind11\+::detail\+::type\+\_\+caster$<$ Data\+Type $>$}



Definition at line 607 of file Python\+Type\+Conversions.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a09728_acbb75d24354df62fc7e9612ffb63d613}\label{a09728_acbb75d24354df62fc7e9612ffb63d613}} 
\index{pybind11\+::detail\+::type\+\_\+caster$<$ Data\+Type $>$@{pybind11\+::detail\+::type\+\_\+caster$<$ Data\+Type $>$}!cast@{cast}}
\index{cast@{cast}!pybind11\+::detail\+::type\+\_\+caster$<$ Data\+Type $>$@{pybind11\+::detail\+::type\+\_\+caster$<$ Data\+Type $>$}}
\subsubsection{\texorpdfstring{cast()}{cast()}}
{\footnotesize\ttfamily static handle pybind11\+::detail\+::type\+\_\+caster$<$ \hyperlink{a07048}{Data\+Type} $>$\+::cast (\begin{DoxyParamCaption}\item[{\hyperlink{a07048}{Data\+Type}}]{src,  }\item[{return\+\_\+value\+\_\+policy}]{,  }\item[{handle}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}

Conversion part 2 (C++ -\/$>$ Python)\+: convert an \hyperlink{a07048}{Data\+Type} instance into a Python object. The second and third arguments are used to indicate the return value policy and parent object (for {\ttfamily return\+\_\+value\+\_\+policy\+::reference\+\_\+internal}) and are generally ignored by implicit casters. 

Definition at line 651 of file Python\+Type\+Conversions.\+hh.

\mbox{\Hypertarget{a09728_a36d8c8ed83c4df824925c46e0d19c1a0}\label{a09728_a36d8c8ed83c4df824925c46e0d19c1a0}} 
\index{pybind11\+::detail\+::type\+\_\+caster$<$ Data\+Type $>$@{pybind11\+::detail\+::type\+\_\+caster$<$ Data\+Type $>$}!load@{load}}
\index{load@{load}!pybind11\+::detail\+::type\+\_\+caster$<$ Data\+Type $>$@{pybind11\+::detail\+::type\+\_\+caster$<$ Data\+Type $>$}}
\subsubsection{\texorpdfstring{load()}{load()}}
{\footnotesize\ttfamily bool pybind11\+::detail\+::type\+\_\+caster$<$ \hyperlink{a07048}{Data\+Type} $>$\+::load (\begin{DoxyParamCaption}\item[{handle}]{src,  }\item[{bool}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

Conversion part 1 (Python-\/$>$C++)\+: convert a Py\+Object into a \hyperlink{a07048}{Data\+Type} instance or return false upon failure. The second argument indicates whether implicit conversions should be applied. 

Definition at line 621 of file Python\+Type\+Conversions.\+hh.

\mbox{\Hypertarget{a09728_a397c89879103867701df125360544f1c}\label{a09728_a397c89879103867701df125360544f1c}} 
\index{pybind11\+::detail\+::type\+\_\+caster$<$ Data\+Type $>$@{pybind11\+::detail\+::type\+\_\+caster$<$ Data\+Type $>$}!P\+Y\+B\+I\+N\+D11\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+A\+S\+T\+ER@{P\+Y\+B\+I\+N\+D11\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+A\+S\+T\+ER}}
\index{P\+Y\+B\+I\+N\+D11\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+A\+S\+T\+ER@{P\+Y\+B\+I\+N\+D11\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+A\+S\+T\+ER}!pybind11\+::detail\+::type\+\_\+caster$<$ Data\+Type $>$@{pybind11\+::detail\+::type\+\_\+caster$<$ Data\+Type $>$}}
\subsubsection{\texorpdfstring{P\+Y\+B\+I\+N\+D11\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+A\+S\+T\+E\+R()}{PYBIND11\_TYPE\_CASTER()}}
{\footnotesize\ttfamily pybind11\+::detail\+::type\+\_\+caster$<$ \hyperlink{a07048}{Data\+Type} $>$\+::P\+Y\+B\+I\+N\+D11\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+A\+S\+T\+ER (\begin{DoxyParamCaption}\item[{\hyperlink{a07048}{Data\+Type}}]{,  }\item[{\+\_\+(\char`\"{}Data\+Type\char`\"{})}]{ }\end{DoxyParamCaption})}

This macro establishes the name \textquotesingle{}\hyperlink{a07048}{Data\+Type}\textquotesingle{} in function signatures and declares a local variable \textquotesingle{}value\textquotesingle{} of type \hyperlink{a07048}{Data\+Type} 

The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/\+Python\+Interpreter/Python\+Type\+Conversions.\+hh\end{DoxyCompactItemize}
