//go:build !no_gotd_slices
// +build !no_gotd_slices

// Code generated by gotdgen, DO NOT EDIT.

package tg

import (
	
	
	
	
	

	

	
	
	
	
)

// No-op definition for keeping imports.
var (
	_ = bin.Buffer{}
	_ = context.Background()
	_ = fmt.Stringer(nil)
	_ = strings.Builder{}
	_ = errors.Is
	_ = multierr.AppendInto
	_ = sort.Ints
	_ = tdp.Format
	_ = tgerr.Error{}
	_ = tdjson.Encoder{}
)

// EmailVerificationClassArray is adapter for slice of EmailVerificationClass.
type EmailVerificationClassArray []EmailVerificationClass

// Sort sorts slice of EmailVerificationClass.
func ( EmailVerificationClassArray) ( func(,  EmailVerificationClass) bool) EmailVerificationClassArray {
	sort.Slice(, func(,  int) bool {
		return ([], [])
	})
	return 
}

// SortStable sorts slice of EmailVerificationClass.
func ( EmailVerificationClassArray) ( func(,  EmailVerificationClass) bool) EmailVerificationClassArray {
	sort.SliceStable(, func(,  int) bool {
		return ([], [])
	})
	return 
}

// Retain filters in-place slice of EmailVerificationClass.
func ( EmailVerificationClassArray) ( func( EmailVerificationClass) bool) EmailVerificationClassArray {
	 := 0
	for ,  := range  {
		if () {
			[] = 
			++
		}
	}
	 = [:]

	return 
}

// First returns first element of slice (if exists).
func ( EmailVerificationClassArray) () ( EmailVerificationClass,  bool) {
	if len() < 1 {
		return
	}
	return [0], true
}

// Last returns last element of slice (if exists).
func ( EmailVerificationClassArray) () ( EmailVerificationClass,  bool) {
	if len() < 1 {
		return
	}
	return [len()-1], true
}

// PopFirst returns first element of slice (if exists) and deletes it.
func ( *EmailVerificationClassArray) () ( EmailVerificationClass,  bool) {
	if  == nil || len(*) < 1 {
		return
	}

	 := *
	 = [0]

	// Delete by index from SliceTricks.
	copy([0:], [1:])
	var  EmailVerificationClass
	[len()-1] = 
	 = [:len()-1]
	* = 

	return , true
}

// Pop returns last element of slice (if exists) and deletes it.
func ( *EmailVerificationClassArray) () ( EmailVerificationClass,  bool) {
	if  == nil || len(*) < 1 {
		return
	}

	 := *
	 = [len()-1]
	 = [:len()-1]
	* = 

	return , true
}

// AsEmailVerificationCode returns copy with only EmailVerificationCode constructors.
func ( EmailVerificationClassArray) () ( EmailVerificationCodeArray) {
	for ,  := range  {
		,  := .(*EmailVerificationCode)
		if ! {
			continue
		}
		 = append(, *)
	}

	return 
}

// AsEmailVerificationGoogle returns copy with only EmailVerificationGoogle constructors.
func ( EmailVerificationClassArray) () ( EmailVerificationGoogleArray) {
	for ,  := range  {
		,  := .(*EmailVerificationGoogle)
		if ! {
			continue
		}
		 = append(, *)
	}

	return 
}

// AsEmailVerificationApple returns copy with only EmailVerificationApple constructors.
func ( EmailVerificationClassArray) () ( EmailVerificationAppleArray) {
	for ,  := range  {
		,  := .(*EmailVerificationApple)
		if ! {
			continue
		}
		 = append(, *)
	}

	return 
}

// EmailVerificationCodeArray is adapter for slice of EmailVerificationCode.
type EmailVerificationCodeArray []EmailVerificationCode

// Sort sorts slice of EmailVerificationCode.
func ( EmailVerificationCodeArray) ( func(,  EmailVerificationCode) bool) EmailVerificationCodeArray {
	sort.Slice(, func(,  int) bool {
		return ([], [])
	})
	return 
}

// SortStable sorts slice of EmailVerificationCode.
func ( EmailVerificationCodeArray) ( func(,  EmailVerificationCode) bool) EmailVerificationCodeArray {
	sort.SliceStable(, func(,  int) bool {
		return ([], [])
	})
	return 
}

// Retain filters in-place slice of EmailVerificationCode.
func ( EmailVerificationCodeArray) ( func( EmailVerificationCode) bool) EmailVerificationCodeArray {
	 := 0
	for ,  := range  {
		if () {
			[] = 
			++
		}
	}
	 = [:]

	return 
}

// First returns first element of slice (if exists).
func ( EmailVerificationCodeArray) () ( EmailVerificationCode,  bool) {
	if len() < 1 {
		return
	}
	return [0], true
}

// Last returns last element of slice (if exists).
func ( EmailVerificationCodeArray) () ( EmailVerificationCode,  bool) {
	if len() < 1 {
		return
	}
	return [len()-1], true
}

// PopFirst returns first element of slice (if exists) and deletes it.
func ( *EmailVerificationCodeArray) () ( EmailVerificationCode,  bool) {
	if  == nil || len(*) < 1 {
		return
	}

	 := *
	 = [0]

	// Delete by index from SliceTricks.
	copy([0:], [1:])
	var  EmailVerificationCode
	[len()-1] = 
	 = [:len()-1]
	* = 

	return , true
}

// Pop returns last element of slice (if exists) and deletes it.
func ( *EmailVerificationCodeArray) () ( EmailVerificationCode,  bool) {
	if  == nil || len(*) < 1 {
		return
	}

	 := *
	 = [len()-1]
	 = [:len()-1]
	* = 

	return , true
}

// EmailVerificationGoogleArray is adapter for slice of EmailVerificationGoogle.
type EmailVerificationGoogleArray []EmailVerificationGoogle

// Sort sorts slice of EmailVerificationGoogle.
func ( EmailVerificationGoogleArray) ( func(,  EmailVerificationGoogle) bool) EmailVerificationGoogleArray {
	sort.Slice(, func(,  int) bool {
		return ([], [])
	})
	return 
}

// SortStable sorts slice of EmailVerificationGoogle.
func ( EmailVerificationGoogleArray) ( func(,  EmailVerificationGoogle) bool) EmailVerificationGoogleArray {
	sort.SliceStable(, func(,  int) bool {
		return ([], [])
	})
	return 
}

// Retain filters in-place slice of EmailVerificationGoogle.
func ( EmailVerificationGoogleArray) ( func( EmailVerificationGoogle) bool) EmailVerificationGoogleArray {
	 := 0
	for ,  := range  {
		if () {
			[] = 
			++
		}
	}
	 = [:]

	return 
}

// First returns first element of slice (if exists).
func ( EmailVerificationGoogleArray) () ( EmailVerificationGoogle,  bool) {
	if len() < 1 {
		return
	}
	return [0], true
}

// Last returns last element of slice (if exists).
func ( EmailVerificationGoogleArray) () ( EmailVerificationGoogle,  bool) {
	if len() < 1 {
		return
	}
	return [len()-1], true
}

// PopFirst returns first element of slice (if exists) and deletes it.
func ( *EmailVerificationGoogleArray) () ( EmailVerificationGoogle,  bool) {
	if  == nil || len(*) < 1 {
		return
	}

	 := *
	 = [0]

	// Delete by index from SliceTricks.
	copy([0:], [1:])
	var  EmailVerificationGoogle
	[len()-1] = 
	 = [:len()-1]
	* = 

	return , true
}

// Pop returns last element of slice (if exists) and deletes it.
func ( *EmailVerificationGoogleArray) () ( EmailVerificationGoogle,  bool) {
	if  == nil || len(*) < 1 {
		return
	}

	 := *
	 = [len()-1]
	 = [:len()-1]
	* = 

	return , true
}

// EmailVerificationAppleArray is adapter for slice of EmailVerificationApple.
type EmailVerificationAppleArray []EmailVerificationApple

// Sort sorts slice of EmailVerificationApple.
func ( EmailVerificationAppleArray) ( func(,  EmailVerificationApple) bool) EmailVerificationAppleArray {
	sort.Slice(, func(,  int) bool {
		return ([], [])
	})
	return 
}

// SortStable sorts slice of EmailVerificationApple.
func ( EmailVerificationAppleArray) ( func(,  EmailVerificationApple) bool) EmailVerificationAppleArray {
	sort.SliceStable(, func(,  int) bool {
		return ([], [])
	})
	return 
}

// Retain filters in-place slice of EmailVerificationApple.
func ( EmailVerificationAppleArray) ( func( EmailVerificationApple) bool) EmailVerificationAppleArray {
	 := 0
	for ,  := range  {
		if () {
			[] = 
			++
		}
	}
	 = [:]

	return 
}

// First returns first element of slice (if exists).
func ( EmailVerificationAppleArray) () ( EmailVerificationApple,  bool) {
	if len() < 1 {
		return
	}
	return [0], true
}

// Last returns last element of slice (if exists).
func ( EmailVerificationAppleArray) () ( EmailVerificationApple,  bool) {
	if len() < 1 {
		return
	}
	return [len()-1], true
}

// PopFirst returns first element of slice (if exists) and deletes it.
func ( *EmailVerificationAppleArray) () ( EmailVerificationApple,  bool) {
	if  == nil || len(*) < 1 {
		return
	}

	 := *
	 = [0]

	// Delete by index from SliceTricks.
	copy([0:], [1:])
	var  EmailVerificationApple
	[len()-1] = 
	 = [:len()-1]
	* = 

	return , true
}

// Pop returns last element of slice (if exists) and deletes it.
func ( *EmailVerificationAppleArray) () ( EmailVerificationApple,  bool) {
	if  == nil || len(*) < 1 {
		return
	}

	 := *
	 = [len()-1]
	 = [:len()-1]
	* = 

	return , true
}