pub struct MusicPlayerServer { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for MusicPlayerServer
impl Clone for MusicPlayerServer
Source§fn clone(&self) -> MusicPlayerServer
fn clone(&self) -> MusicPlayerServer
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MusicPlayerServer
impl Debug for MusicPlayerServer
Source§impl MusicPlayer for MusicPlayerServer
impl MusicPlayer for MusicPlayerServer
Source§async fn library_rescan(
self,
context: Context,
) -> Result<(), SerializableLibraryError>
async fn library_rescan( self, context: Context, ) -> Result<(), SerializableLibraryError>
Rescans the music library, only error is if a rescan is already in progress.
Source§async fn library_rescan_in_progress(self, context: Context) -> bool
async fn library_rescan_in_progress(self, context: Context) -> bool
Check if a rescan is in progress.
Source§async fn library_analyze(
self,
context: Context,
overwrite: bool,
) -> Result<(), SerializableLibraryError>
async fn library_analyze( self, context: Context, overwrite: bool, ) -> Result<(), SerializableLibraryError>
Analyze the music library, only error is if an analysis is already in progress.
Source§async fn library_analyze_in_progress(self, context: Context) -> bool
async fn library_analyze_in_progress(self, context: Context) -> bool
Check if an analysis is in progress.
Source§async fn library_recluster(
self,
context: Context,
) -> Result<(), SerializableLibraryError>
async fn library_recluster( self, context: Context, ) -> Result<(), SerializableLibraryError>
Recluster the music library, only error is if a recluster is already in progress.
Source§async fn library_recluster_in_progress(self, context: Context) -> bool
async fn library_recluster_in_progress(self, context: Context) -> bool
Check if a recluster is in progress.
Source§async fn library_brief(
self,
context: Context,
) -> Result<LibraryBrief, SerializableLibraryError>
async fn library_brief( self, context: Context, ) -> Result<LibraryBrief, SerializableLibraryError>
Returns brief information about the music library.
Source§async fn library_full(
self,
context: Context,
) -> Result<LibraryFull, SerializableLibraryError>
async fn library_full( self, context: Context, ) -> Result<LibraryFull, SerializableLibraryError>
Returns full information about the music library. (all songs, artists, albums, etc.)
Source§async fn library_artists_brief(
self,
context: Context,
) -> Result<Box<[ArtistBrief]>, SerializableLibraryError>
async fn library_artists_brief( self, context: Context, ) -> Result<Box<[ArtistBrief]>, SerializableLibraryError>
Returns brief information about the music library’s artists.
Source§async fn library_artists_full(
self,
context: Context,
) -> Result<Box<[Artist]>, SerializableLibraryError>
async fn library_artists_full( self, context: Context, ) -> Result<Box<[Artist]>, SerializableLibraryError>
Returns full information about the music library’s artists.
Source§async fn library_albums_brief(
self,
context: Context,
) -> Result<Box<[AlbumBrief]>, SerializableLibraryError>
async fn library_albums_brief( self, context: Context, ) -> Result<Box<[AlbumBrief]>, SerializableLibraryError>
Returns brief information about the music library’s albums.
Source§async fn library_albums_full(
self,
context: Context,
) -> Result<Box<[Album]>, SerializableLibraryError>
async fn library_albums_full( self, context: Context, ) -> Result<Box<[Album]>, SerializableLibraryError>
Returns full information about the music library’s albums.
Source§async fn library_songs_brief(
self,
context: Context,
) -> Result<Box<[SongBrief]>, SerializableLibraryError>
async fn library_songs_brief( self, context: Context, ) -> Result<Box<[SongBrief]>, SerializableLibraryError>
Returns brief information about the music library’s songs.
Source§async fn library_songs_full(
self,
context: Context,
) -> Result<Box<[Song]>, SerializableLibraryError>
async fn library_songs_full( self, context: Context, ) -> Result<Box<[Song]>, SerializableLibraryError>
Returns full information about the music library’s songs.
Source§async fn library_health(
self,
context: Context,
) -> Result<LibraryHealth, SerializableLibraryError>
async fn library_health( self, context: Context, ) -> Result<LibraryHealth, SerializableLibraryError>
Returns information about the health of the music library (are there any missing files, etc.)
Source§async fn library_song_get(self, context: Context, id: SongId) -> Option<Song>
async fn library_song_get(self, context: Context, id: SongId) -> Option<Song>
Get a song by its ID.
Source§async fn library_song_get_by_path(
self,
context: Context,
path: PathBuf,
) -> Option<Song>
async fn library_song_get_by_path( self, context: Context, path: PathBuf, ) -> Option<Song>
Get a song by its file path.
Source§async fn library_song_get_artist(
self,
context: Context,
id: SongId,
) -> OneOrMany<Artist>
async fn library_song_get_artist( self, context: Context, id: SongId, ) -> OneOrMany<Artist>
Get the artists of a song.
Source§async fn library_song_get_album(
self,
context: Context,
id: SongId,
) -> Option<Album>
async fn library_song_get_album( self, context: Context, id: SongId, ) -> Option<Album>
Get the album of a song.
Source§async fn library_song_get_playlists(
self,
context: Context,
id: SongId,
) -> Box<[Playlist]>
async fn library_song_get_playlists( self, context: Context, id: SongId, ) -> Box<[Playlist]>
Get the Playlists a song is in.
Source§async fn library_song_get_collections(
self,
context: Context,
id: SongId,
) -> Box<[Collection]>
async fn library_song_get_collections( self, context: Context, id: SongId, ) -> Box<[Collection]>
Get the Collections a song is in.
Source§async fn library_album_get(self, context: Context, id: AlbumId) -> Option<Album>
async fn library_album_get(self, context: Context, id: AlbumId) -> Option<Album>
Get an album by its ID.
Source§async fn library_album_get_artist(
self,
context: Context,
id: AlbumId,
) -> OneOrMany<Artist>
async fn library_album_get_artist( self, context: Context, id: AlbumId, ) -> OneOrMany<Artist>
Get the artists of an album
Source§async fn library_album_get_songs(
self,
context: Context,
id: AlbumId,
) -> Option<Box<[Song]>>
async fn library_album_get_songs( self, context: Context, id: AlbumId, ) -> Option<Box<[Song]>>
Get the songs of an album
Source§async fn library_artist_get(
self,
context: Context,
id: ArtistId,
) -> Option<Artist>
async fn library_artist_get( self, context: Context, id: ArtistId, ) -> Option<Artist>
Get an artist by its ID.
Source§async fn library_artist_get_songs(
self,
context: Context,
id: ArtistId,
) -> Option<Box<[Song]>>
async fn library_artist_get_songs( self, context: Context, id: ArtistId, ) -> Option<Box<[Song]>>
Get the songs of an artist
Source§async fn library_artist_get_albums(
self,
context: Context,
id: ArtistId,
) -> Option<Box<[Album]>>
async fn library_artist_get_albums( self, context: Context, id: ArtistId, ) -> Option<Box<[Album]>>
Get the albums of an artist
Source§async fn daemon_shutdown(self, context: Context)
async fn daemon_shutdown(self, context: Context)
tells the daemon to shutdown.
Source§async fn state_audio(self, context: Context) -> Option<StateAudio>
async fn state_audio(self, context: Context) -> Option<StateAudio>
returns full information about the current state of the audio player (queue, current song, etc.)
Source§async fn current_artist(self, context: Context) -> OneOrMany<Artist>
async fn current_artist(self, context: Context) -> OneOrMany<Artist>
returns the current artist.
Source§async fn search(
self,
context: Context,
query: String,
limit: u32,
) -> SearchResult
async fn search( self, context: Context, query: String, limit: u32, ) -> SearchResult
returns a list of artists, albums, and songs matching the given search query.
Source§async fn search_artist(
self,
context: Context,
query: String,
limit: u32,
) -> Box<[Artist]>
async fn search_artist( self, context: Context, query: String, limit: u32, ) -> Box<[Artist]>
returns a list of artists matching the given search query.
Source§async fn search_album(
self,
context: Context,
query: String,
limit: u32,
) -> Box<[Album]>
async fn search_album( self, context: Context, query: String, limit: u32, ) -> Box<[Album]>
returns a list of albums matching the given search query.
Source§async fn search_song(
self,
context: Context,
query: String,
limit: u32,
) -> Box<[Song]>
async fn search_song( self, context: Context, query: String, limit: u32, ) -> Box<[Song]>
returns a list of songs matching the given search query.
Source§async fn playback_toggle(self, context: Context)
async fn playback_toggle(self, context: Context)
toggles playback (play/pause).
Source§async fn playback_play(self, context: Context)
async fn playback_play(self, context: Context)
start playback (unpause).
Source§async fn playback_pause(self, context: Context)
async fn playback_pause(self, context: Context)
pause playback.
Source§async fn playback_stop(self, context: Context)
async fn playback_stop(self, context: Context)
stop playback.
Source§async fn playback_restart(self, context: Context)
async fn playback_restart(self, context: Context)
restart the current song.
Source§async fn playback_skip_forward(self, context: Context, amount: usize)
async fn playback_skip_forward(self, context: Context, amount: usize)
skip forward by the given amount of songs
Source§async fn playback_skip_backward(self, context: Context, amount: usize)
async fn playback_skip_backward(self, context: Context, amount: usize)
go backwards by the given amount of songs.
Source§async fn playback_clear_player(self, context: Context)
async fn playback_clear_player(self, context: Context)
stop playback. (clears the queue and stops playback)
Source§async fn playback_clear(self, context: Context)
async fn playback_clear(self, context: Context)
clear the queue.
Source§async fn playback_seek(
self,
context: Context,
seek: SeekType,
duration: Duration,
)
async fn playback_seek( self, context: Context, seek: SeekType, duration: Duration, )
seek forwards, backwards, or to an absolute second in the current song.
Source§async fn playback_repeat(self, context: Context, mode: RepeatMode)
async fn playback_repeat(self, context: Context, mode: RepeatMode)
set the repeat mode.
Source§async fn playback_shuffle(self, context: Context)
async fn playback_shuffle(self, context: Context)
Shuffle the current queue, then start playing from the 1st Song in the queue.
Source§async fn playback_volume(self, context: Context, volume: f32)
async fn playback_volume(self, context: Context, volume: f32)
set the volume to the given value
The value 1.0 is the “normal” volume (unfiltered input). Any value other than 1.0 will multiply each sample by this value.
Source§async fn playback_volume_up(self, context: Context, amount: f32)
async fn playback_volume_up(self, context: Context, amount: f32)
increase the volume by the given amount
Source§async fn playback_volume_down(self, context: Context, amount: f32)
async fn playback_volume_down(self, context: Context, amount: f32)
decrease the volume by the given amount
Source§async fn playback_volume_toggle_mute(self, context: Context)
async fn playback_volume_toggle_mute(self, context: Context)
toggle the volume mute.
Source§async fn playback_mute(self, context: Context)
async fn playback_mute(self, context: Context)
mute the volume.
Source§async fn playback_unmute(self, context: Context)
async fn playback_unmute(self, context: Context)
unmute the volume.
Source§async fn queue_add(
self,
context: Context,
thing: RecordId,
) -> Result<(), SerializableLibraryError>
async fn queue_add( self, context: Context, thing: RecordId, ) -> Result<(), SerializableLibraryError>
add a song to the queue. (if the queue is empty, it will start playing the song.)
Source§async fn queue_add_list(
self,
context: Context,
list: Vec<RecordId>,
) -> Result<(), SerializableLibraryError>
async fn queue_add_list( self, context: Context, list: Vec<RecordId>, ) -> Result<(), SerializableLibraryError>
add a list of things to the queue. (if the queue is empty, it will start playing the first thing in the list.)
Source§async fn queue_set_index(self, context: Context, index: usize)
async fn queue_set_index(self, context: Context, index: usize)
set the current song to a queue index. if the index is out of bounds, it will be clamped to the nearest valid index.
Source§async fn queue_remove_range(self, context: Context, range: Range<usize>)
async fn queue_remove_range(self, context: Context, range: Range<usize>)
remove a range of songs from the queue. if the range is out of bounds, it will be clamped to the nearest valid range.
Source§async fn playlist_list(self, context: Context) -> Box<[PlaylistBrief]>
async fn playlist_list(self, context: Context) -> Box<[PlaylistBrief]>
Returns brief information about the users playlists.
Source§async fn playlist_get_or_create(
self,
context: Context,
name: String,
) -> Result<PlaylistId, SerializableLibraryError>
async fn playlist_get_or_create( self, context: Context, name: String, ) -> Result<PlaylistId, SerializableLibraryError>
create a new playlist. if a playlist with the same name already exists, this will return that playlist’s id in the error variant
Source§async fn playlist_remove(
self,
context: Context,
id: PlaylistId,
) -> Result<(), SerializableLibraryError>
async fn playlist_remove( self, context: Context, id: PlaylistId, ) -> Result<(), SerializableLibraryError>
remove a playlist.
Source§async fn playlist_clone(
self,
context: Context,
id: PlaylistId,
) -> Result<PlaylistId, SerializableLibraryError>
async fn playlist_clone( self, context: Context, id: PlaylistId, ) -> Result<PlaylistId, SerializableLibraryError>
clone a playlist. (creates a new playlist with the same name (append “ (copy)“) and contents as the given playlist.) returns the id of the new playlist
Source§async fn playlist_get_id(
self,
context: Context,
name: String,
) -> Option<PlaylistId>
async fn playlist_get_id( self, context: Context, name: String, ) -> Option<PlaylistId>
get the id of a playlist. returns none if the playlist does not exist.
Source§async fn playlist_remove_songs(
self,
context: Context,
playlist: PlaylistId,
songs: Vec<SongId>,
) -> Result<(), SerializableLibraryError>
async fn playlist_remove_songs( self, context: Context, playlist: PlaylistId, songs: Vec<SongId>, ) -> Result<(), SerializableLibraryError>
remove a list of songs from a playlist. if the songs are not in the playlist, this will do nothing.
Source§async fn playlist_add(
self,
context: Context,
playlist: PlaylistId,
thing: RecordId,
) -> Result<(), SerializableLibraryError>
async fn playlist_add( self, context: Context, playlist: PlaylistId, thing: RecordId, ) -> Result<(), SerializableLibraryError>
Add a thing to a playlist. If the thing is something that has songs (an album, artist, etc.), it will add all the songs.
Source§async fn playlist_add_list(
self,
context: Context,
playlist: PlaylistId,
list: Vec<RecordId>,
) -> Result<(), SerializableLibraryError>
async fn playlist_add_list( self, context: Context, playlist: PlaylistId, list: Vec<RecordId>, ) -> Result<(), SerializableLibraryError>
Add a list of things to a playlist. If the things are something that have songs (an album, artist, etc.), it will add all the songs.
Source§async fn playlist_get(
self,
context: Context,
id: PlaylistId,
) -> Option<Playlist>
async fn playlist_get( self, context: Context, id: PlaylistId, ) -> Option<Playlist>
Get a playlist by its ID.
Source§async fn playlist_get_songs(
self,
context: Context,
id: PlaylistId,
) -> Option<Box<[Song]>>
async fn playlist_get_songs( self, context: Context, id: PlaylistId, ) -> Option<Box<[Song]>>
Get the songs of a playlist
Source§async fn playlist_rename(
self,
context: Context,
id: PlaylistId,
name: String,
) -> Result<Playlist, SerializableLibraryError>
async fn playlist_rename( self, context: Context, id: PlaylistId, name: String, ) -> Result<Playlist, SerializableLibraryError>
Rename a playlist.
Source§async fn collection_list(self, context: Context) -> Box<[CollectionBrief]>
async fn collection_list(self, context: Context) -> Box<[CollectionBrief]>
Collections: Return brief information about the users auto curration collections.
Source§async fn collection_get(
self,
context: Context,
id: CollectionId,
) -> Option<Collection>
async fn collection_get( self, context: Context, id: CollectionId, ) -> Option<Collection>
Collections: get a collection by its ID.
Source§async fn collection_freeze(
self,
context: Context,
id: CollectionId,
name: String,
) -> Result<PlaylistId, SerializableLibraryError>
async fn collection_freeze( self, context: Context, id: CollectionId, name: String, ) -> Result<PlaylistId, SerializableLibraryError>
Collections: freeze a collection (convert it to a playlist).
Source§async fn collection_get_songs(
self,
context: Context,
id: CollectionId,
) -> Option<Box<[Song]>>
async fn collection_get_songs( self, context: Context, id: CollectionId, ) -> Option<Box<[Song]>>
Get the songs of a collection
Source§async fn radio_get_similar(
self,
context: Context,
things: Vec<RecordId>,
n: u32,
) -> Result<Box<[Song]>, SerializableLibraryError>
async fn radio_get_similar( self, context: Context, things: Vec<RecordId>, n: u32, ) -> Result<Box<[Song]>, SerializableLibraryError>
Radio: get the n most similar songs to the given things.
Source§async fn radio_get_similar_ids(
self,
context: Context,
things: Vec<RecordId>,
n: u32,
) -> Result<Box<[SongId]>, SerializableLibraryError>
async fn radio_get_similar_ids( self, context: Context, things: Vec<RecordId>, n: u32, ) -> Result<Box<[SongId]>, SerializableLibraryError>
Radio: get the ids of the n most similar songs to the given things.
Source§async fn dynamic_playlist_create(
self,
context: Context,
name: String,
query: Query,
) -> Result<DynamicPlaylistId, SerializableLibraryError>
async fn dynamic_playlist_create( self, context: Context, name: String, query: Query, ) -> Result<DynamicPlaylistId, SerializableLibraryError>
Dynamic Playlists: create a new DP with the given name and query
Source§async fn dynamic_playlist_list(self, context: Context) -> Box<[DynamicPlaylist]>
async fn dynamic_playlist_list(self, context: Context) -> Box<[DynamicPlaylist]>
Dynamic Playlists: list all DPs
Source§async fn dynamic_playlist_update(
self,
context: Context,
id: DynamicPlaylistId,
changes: DynamicPlaylistChangeSet,
) -> Result<DynamicPlaylist, SerializableLibraryError>
async fn dynamic_playlist_update( self, context: Context, id: DynamicPlaylistId, changes: DynamicPlaylistChangeSet, ) -> Result<DynamicPlaylist, SerializableLibraryError>
Dynamic Playlists: update a DP
Source§async fn dynamic_playlist_remove(
self,
context: Context,
id: DynamicPlaylistId,
) -> Result<(), SerializableLibraryError>
async fn dynamic_playlist_remove( self, context: Context, id: DynamicPlaylistId, ) -> Result<(), SerializableLibraryError>
Dynamic Playlists: remove a DP
Source§async fn dynamic_playlist_get(
self,
context: Context,
id: DynamicPlaylistId,
) -> Option<DynamicPlaylist>
async fn dynamic_playlist_get( self, context: Context, id: DynamicPlaylistId, ) -> Option<DynamicPlaylist>
Dynamic Playlists: get a DP by its ID
Source§async fn dynamic_playlist_get_songs(
self,
context: Context,
id: DynamicPlaylistId,
) -> Option<Box<[Song]>>
async fn dynamic_playlist_get_songs( self, context: Context, id: DynamicPlaylistId, ) -> Option<Box<[Song]>>
Dynamic Playlists: get the songs of a DP
Source§async fn register_listener(self, context: Context, listener_addr: SocketAddr)
async fn register_listener(self, context: Context, listener_addr: SocketAddr)
async fn ping(self, _: Context) -> String
Source§fn serve(self) -> ServeMusicPlayer<Self>
fn serve(self) -> ServeMusicPlayer<Self>
Auto Trait Implementations§
impl Freeze for MusicPlayerServer
impl !RefUnwindSafe for MusicPlayerServer
impl Send for MusicPlayerServer
impl Sync for MusicPlayerServer
impl Unpin for MusicPlayerServer
impl !UnwindSafe for MusicPlayerServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.