Struct RepeatNInner

pub(in ::iter::sources::repeat_n) struct RepeatNInner<T> { pub(in ::iter::sources::repeat_n) count: NonZero<usize>, pub(in ::iter::sources::repeat_n) element: T }

Fields

count: NonZero<usize>
element: T

Implementations

impl<T> RepeatNInner<T>

fn new(element: T, count: usize) -> Option<Self>

Trait Implementations

impl<T: Clone> Clone for RepeatNInner<T>

fn clone(&self) -> RepeatNInner<T>

impl<T: Copy> Copy for RepeatNInner<T>

Auto Trait Implementations

impl<T> Freeze for RepeatNInner<T> where T: Freeze,

impl<T> RefUnwindSafe for RepeatNInner<T> where T: RefUnwindSafe,

impl<T> Send for RepeatNInner<T> where T: Send,

impl<T> Sync for RepeatNInner<T> where T: Sync,

impl<T> Unpin for RepeatNInner<T> where T: Unpin,

impl<T> UnsafeUnpin for RepeatNInner<T> where T: UnsafeUnpin,

impl<T> UnwindSafe for RepeatNInner<T> where T: UnwindSafe,

Blanket Implementations

impl<T> Any for RepeatNInner<T> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for RepeatNInner<T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for RepeatNInner<T> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for RepeatNInner<T> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for RepeatNInner<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for RepeatNInner<T> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for RepeatNInner<T>

impl<T, U> Into<U> for RepeatNInner<T> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for RepeatNInner<T> where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for RepeatNInner<T> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>